unbrake-frontend/src/tests/ComponentTest.js
import toJson from "enzyme-to-json";
import Adapter from "enzyme-adapter-react-16";
import Enzyme from "enzyme";
Enzyme.configure({ adapter: new Adapter() });
const componentTest = wrapper => {
describe("render()", () => {
test("renders the component", () => {
const component = wrapper.dive();
expect(toJson(component)).toMatchSnapshot();
});
});
};
export default componentTest;