mirror of
https://github.com/UA-Fediland/synapse-admin.git
synced 2025-11-30 05:07:31 +00:00
Add enzyme for testing
Change-Id: If64eba12b5c255e4d0143eab009499793674778a
This commit is contained in:
parent
ac9400d891
commit
a854f981c6
4 changed files with 268 additions and 12 deletions
14
src/App.test.js
Normal file
14
src/App.test.js
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import React from "react";
|
||||
import { TestContext } from "react-admin";
|
||||
import { shallow } from "enzyme";
|
||||
import App from "./App";
|
||||
|
||||
describe("App", () => {
|
||||
it("renders", () => {
|
||||
shallow(
|
||||
<TestContext>
|
||||
<App />
|
||||
</TestContext>
|
||||
);
|
||||
});
|
||||
});
|
||||
4
src/setupTests.js
Normal file
4
src/setupTests.js
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
import { configure } from "enzyme";
|
||||
import Adapter from "enzyme-adapter-react-16";
|
||||
|
||||
configure({ adapter: new Adapter() });
|
||||
Loading…
Add table
Add a link
Reference in a new issue