Update enzyme usage for 3.1.0
Add a setup file that configures the React adapter. Fix one deprecated usage for ProjectLoaderHOC tests. There are some tests still broken, but these weren't called out by Enzyme.
... | ... | @@ -44,6 +44,7 @@ |
"copy-webpack-plugin": "^4.0.1", | ||
"css-loader": "^0.28.7", | ||
"enzyme": "^3.1.0", | ||
"enzyme-adapter-react-15": "1.0.1", | ||
"eslint": "^4.7.1", | ||
"eslint-config-scratch": "^5.0.0", | ||
"eslint-plugin-import": "^2.7.0", | ||
... | ... | @@ -98,6 +99,9 @@ |
"xhr": "2.4.0" | ||
}, | ||
"jest": { | ||
"setupFiles": [ | ||
"<rootDir>/test/helpers/enzyme-setup.js" | ||
], | ||
"testPathIgnorePatterns": [ | ||
"src/test.js" | ||
], | ||
... | ... |
test/helpers/enzyme-setup.js
0 → 100644
Please register or sign in to comment