frontend tests, circleci

This commit is contained in:
2020-10-11 19:16:09 +03:00
committed by Stepan Usatiuk
parent 210113bd6d
commit b5a9a54883
13 changed files with 790 additions and 4 deletions

View File

@@ -0,0 +1,11 @@
import * as React from "react";
import { shallow } from "enzyme";
import { TestTest } from "~TestTest";
describe("<Account />", () => {
it("should not crash", () => {
const wrapper = shallow(<TestTest />);
expect(wrapper.contains(<div>Hello!</div>)).toBeTruthy();
});
});

View File

@@ -0,0 +1,5 @@
import * as React from "react";
export function TestTest() {
return <div>Hello!</div>;
}

View File

@@ -0,0 +1,4 @@
import * as Enzyme from "enzyme";
import * as Adapter from "enzyme-adapter-react-16";
Enzyme.configure({ adapter: new Adapter() });