We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb481ea commit f721714Copy full SHA for f721714
3 files changed
frontend/package.json
@@ -28,6 +28,8 @@
28
"format": "eslint --fix 'src/**/*.js'"
29
},
30
"devDependencies": {
31
+ "enzyme": "^3.7.0",
32
+ "enzyme-adapter-react-16": "^1.7.0",
33
"eslint-config-airbnb-base": "^12.1.0",
34
"eslint-config-prettier": "^2.9.0",
35
"eslint-plugin-jest": "^21.15.1",
frontend/src/setupTests.js
@@ -1,8 +1,12 @@
1
import path from 'path';
2
import os from 'os';
3
import 'abortcontroller-polyfill/dist/polyfill-patch-fetch';
4
+import { configure } from 'enzyme';
5
+import Adapter from 'enzyme-adapter-react-16';
6
import initButtonStyles from './utils/bootstrap';
7
8
+configure({ adapter: new Adapter() });
9
+
10
const { LocalStorage } = require('node-localstorage');
11
// URL API for node
12
const { URL } = require('whatwg-url');
0 commit comments