Skip to content

Commit 350eff3

Browse files
committed
test: add fix for axios import
ref: axios/axios#5101 (comment)
1 parent 8a52f25 commit 350eff3

File tree

3 files changed

+12
-19
lines changed

3 files changed

+12
-19
lines changed

apps/http-sample/jest.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,7 @@ const baseConfig = require('../../jest.config');
22

33
module.exports = {
44
...baseConfig,
5+
moduleNameMapper: {
6+
'^axios$': require.resolve('axios'),
7+
},
58
};

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"@prisma/client": "^3.1.1",
6565
"apollo-server-core": "^3.10.2",
6666
"apollo-server-express": "^3.10.2",
67-
"axios": "^1.0.0",
67+
"axios": "1.2.0-alpha.1",
6868
"class-transformer": "^0.5.1",
6969
"class-validator": "^0.13.2",
7070
"graphql": "15.5.0",
@@ -159,7 +159,7 @@
159159
},
160160
"pnpm": {
161161
"overrides": {
162-
"axios": "^1.0.0"
162+
"axios": "next"
163163
}
164164
}
165165
}

pnpm-lock.yaml

Lines changed: 7 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)