Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
cameroncaci committed Nov 18, 2024
1 parent 161ef46 commit e9641e3
Show file tree
Hide file tree
Showing 5 changed files with 120 additions and 573 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/webpack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

strategy:
matrix:
node-version: [18.x, 20.x]
node-version: [20.x]

steps:
- uses: actions/checkout@v4
Expand All @@ -24,7 +24,7 @@ jobs:

- name: Build
run: |
if [ "${{ matrix.node-version }}" == "18.x" ] || [ "${{ matrix.node-version }}" == "20.x" ]; then
if [ "${{ matrix.node-version }}" == "20.x" ]; then
export NODE_OPTIONS=--openssl-legacy-provider
fi
npm install
Expand Down
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nodejs 18.20.4
nodejs 20.17.0
16 changes: 8 additions & 8 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.11.0",
"@wojtekmaj/enzyme-adapter-react-17": "^0.8.0",
"enzyme": "^3.8.0",
"enzyme-adapter-react-16": "^1.7.1",
"enzyme-wait": "^1.0.9",
"eslint": "^7.3.1",
"eslint-config-prettier": "^6.11.0",
Expand All @@ -86,9 +86,9 @@
"lint-staged": "^10.2.11",
"postcss-loader": "^4.2.0",
"prettier": "^2.0.5",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"react-test-renderer": "^17.0.1",
"react": "^16.6.3",
"react-dom": "^16.6.3",
"react-test-renderer": "^16.6.3",
"sass-loader": "^10.1.1",
"style-loader": "^1.2.1",
"url-loader": "^4.1.0",
Expand Down Expand Up @@ -120,8 +120,8 @@
"cheerio": "1.0.0-rc.10"
},
"peerDependencies": {
"react": "^17.0.1",
"react-dom": "^17.0.1"
"react": "^16.6.3",
"react-dom": "^16.6.3"
},
"babel": {
"presets": [
Expand Down Expand Up @@ -149,7 +149,7 @@
"testPathIgnorePatterns": [
"<rootDir>/(build|scripts|example_files)/"
],
"testEnvironment": "jsdom",
"testEnvironment": "node",
"transform": {
"^.+\\.(js|jsx)$": "<rootDir>/node_modules/babel-jest",
"^.+\\.(css|scss)$": "<rootDir>/config/jest/cssTransform.js",
Expand Down
5 changes: 2 additions & 3 deletions tests/setupTests.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { configure } from 'enzyme';
import Enzyme from 'enzyme';
import Adapter from '@wojtekmaj/enzyme-adapter-react-17';
import Adapter from 'enzyme-adapter-react-16';

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

0 comments on commit e9641e3

Please sign in to comment.