Skip to content

Commit

Permalink
jest) add cjs version module for react-dnd
Browse files Browse the repository at this point in the history
  • Loading branch information
tienday committed Aug 22, 2024
1 parent a0838f8 commit 89e089c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@
"react-app-rewired": "^2.2.1",
"react-color": "^2.19.3",
"react-dnd": "^16.0.1",
"react-dnd-cjs": "^9.5.1",
"react-dnd-html5-backend": "^16.0.1",
"react-dnd-html5-backend-cjs": "^9.5.1",
"react-dom": "18.2.0",
"react-linear-gradient-picker": "^3.0.1",
"react-plotlyjs-ts": "^2.2.2",
Expand All @@ -56,7 +58,7 @@
"prestart": "node export-versions.js",
"start": "react-app-rewired start --scripts-version react-scripts",
"build": "BUILD_PATH='./build' react-app-rewired build --openssl-legacy-provider build",
"test": "react-app-rewired test --transformIgnorePatterns 'node_modules/(?!react-dnd|@react-dnd)/'",
"test": "react-app-rewired test",
"test:ci": "CI=true react-app-rewired test",
"eject": "react-scripts eject",
"format": "prettier --write .",
Expand Down Expand Up @@ -109,7 +111,10 @@
},
"jest": {
"moduleNameMapper": {
"^axios$": "axios/dist/node/axios.cjs"
"^axios$": "axios/dist/node/axios.cjs",
"react-dnd": "react-dnd-cjs",
"react-dnd-html5-backend": "react-dnd-html5-backend-cjs",
"dnd-core": "dnd-core-cjs"
}
}
}

0 comments on commit 89e089c

Please sign in to comment.