Skip to content

Commit

Permalink
use transformIgnorePatterns instead of moduleNameMapper
Browse files Browse the repository at this point in the history
  • Loading branch information
kaperoo committed Nov 20, 2023
1 parent 0b65bf7 commit 0bd7aee
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions packages/datagateway-common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@
]
},
"jest": {
"moduleNameMapper": {
"axios": "axios/dist/node/axios.cjs"
},
"transformIgnorePatterns": [
"node_modules/(?!axios)"
],
"collectCoverageFrom": [
"src/**/*.{tsx,ts,js,jsx}",
"!src/index.tsx",
Expand Down
6 changes: 3 additions & 3 deletions packages/datagateway-dataview/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@
]
},
"jest": {
"moduleNameMapper": {
"axios": "axios/dist/node/axios.cjs"
},
"transformIgnorePatterns": [
"node_modules/(?!axios)"
],
"collectCoverageFrom": [
"src/**/*.{tsx,ts,js,jsx}",
"!src/index.tsx",
Expand Down
6 changes: 3 additions & 3 deletions packages/datagateway-download/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@
]
},
"jest": {
"moduleNameMapper": {
"axios": "axios/dist/node/axios.cjs"
},
"transformIgnorePatterns": [
"node_modules/(?!axios)"
],
"snapshotSerializers": [
"enzyme-to-json/serializer"
],
Expand Down
6 changes: 3 additions & 3 deletions packages/datagateway-search/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@
]
},
"jest": {
"moduleNameMapper": {
"axios": "axios/dist/node/axios.cjs"
},
"transformIgnorePatterns": [
"node_modules/(?!axios)"
],
"snapshotSerializers": [
"enzyme-to-json/serializer"
],
Expand Down

0 comments on commit 0bd7aee

Please sign in to comment.