Skip to content

Commit

Permalink
react and enzyme enhancements
Browse files Browse the repository at this point in the history
  • Loading branch information
cameroncaci committed Nov 18, 2024
1 parent 5e346bc commit 161ef46
Show file tree
Hide file tree
Showing 3 changed files with 553 additions and 106 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@
"chalk": "^4.1.0",
"copy-webpack-plugin": "^12.0.2",
"css-loader": "^7.1.1",
"enzyme": "^3.8.0",
"enzyme-adapter-react-16": "^1.7.1",
"enzyme": "^3.11.0",
"@wojtekmaj/enzyme-adapter-react-17": "^0.8.0",
"enzyme-wait": "^1.0.9",
"eslint": "^7.3.1",
"eslint-config-prettier": "^6.11.0",
Expand All @@ -88,7 +88,7 @@
"prettier": "^2.0.5",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"react-test-renderer": "^16.6.3",
"react-test-renderer": "^17.0.1",
"sass-loader": "^10.1.1",
"style-loader": "^1.2.1",
"url-loader": "^4.1.0",
Expand Down Expand Up @@ -149,7 +149,7 @@
"testPathIgnorePatterns": [
"<rootDir>/(build|scripts|example_files)/"
],
"testEnvironment": "node",
"testEnvironment": "jsdom",
"transform": {
"^.+\\.(js|jsx)$": "<rootDir>/node_modules/babel-jest",
"^.+\\.(css|scss)$": "<rootDir>/config/jest/cssTransform.js",
Expand Down
5 changes: 3 additions & 2 deletions tests/setupTests.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { configure } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
import Enzyme from 'enzyme';
import Adapter from '@wojtekmaj/enzyme-adapter-react-17';

configure({ adapter: new Adapter() });
Enzyme.configure({ adapter: new Adapter() });
Loading

0 comments on commit 161ef46

Please sign in to comment.