mirror of
https://github.com/usatiuk/photos.git
synced 2025-10-28 15:27:49 +01:00
frontend tests, circleci
This commit is contained in:
11
frontend/src/TestTest.test.tsx
Normal file
11
frontend/src/TestTest.test.tsx
Normal 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();
|
||||
});
|
||||
});
|
||||
5
frontend/src/TestTest.tsx
Normal file
5
frontend/src/TestTest.tsx
Normal file
@@ -0,0 +1,5 @@
|
||||
import * as React from "react";
|
||||
|
||||
export function TestTest() {
|
||||
return <div>Hello!</div>;
|
||||
}
|
||||
4
frontend/src/setupTests.ts
Normal file
4
frontend/src/setupTests.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
import * as Enzyme from "enzyme";
|
||||
import * as Adapter from "enzyme-adapter-react-16";
|
||||
|
||||
Enzyme.configure({ adapter: new Adapter() });
|
||||
Reference in New Issue
Block a user