Fix just config for new axios
This commit is contained in:
parent
3e4cd3f655
commit
d5dd2e664a
|
@ -49,7 +49,8 @@
|
|||
"moduleNameMapper": {
|
||||
"@/router": "<rootDir>/spec/mock/router.ts",
|
||||
"^@/(.+)": "<rootDir>/src/renderer/$1",
|
||||
"^~/(.+)": "<rootDir>/$1"
|
||||
"^~/(.+)": "<rootDir>/$1",
|
||||
"axios": "axios/dist/node/axios.cjs"
|
||||
},
|
||||
"testMatch": [
|
||||
"**/spec/**/*.spec.ts"
|
||||
|
@ -59,6 +60,7 @@
|
|||
"^.+\\.(js|jsx)$": "babel-jest",
|
||||
"^.+\\.(ts|tsx)$": "ts-jest"
|
||||
},
|
||||
"transformIgnorePatterns": ["/node_modules/(?!axios)"],
|
||||
"setupFiles": [
|
||||
"core-js",
|
||||
"<rootDir>/spec/setupJest.ts"
|
||||
|
@ -79,7 +81,7 @@
|
|||
"about-window": "^1.15.2",
|
||||
"animate.css": "^4.1.0",
|
||||
"auto-launch": "^5.0.5",
|
||||
"axios": "^0.27.2",
|
||||
"axios": "1.1.3",
|
||||
"blueimp-load-image": "^5.16.0",
|
||||
"deep-extend": "^0.6.0",
|
||||
"electron-context-menu": "^3.6.1",
|
||||
|
|
10
yarn.lock
10
yarn.lock
|
@ -3104,14 +3104,6 @@ axios@1.1.3:
|
|||
form-data "^4.0.0"
|
||||
proxy-from-env "^1.1.0"
|
||||
|
||||
axios@^0.27.2:
|
||||
version "0.27.2"
|
||||
resolved "https://registry.yarnpkg.com/axios/-/axios-0.27.2.tgz#207658cc8621606e586c85db4b41a750e756d972"
|
||||
integrity sha512-t+yRIyySRTp/wua5xEr+z1q60QmLq8ABsS5O9Me1AsE5dfKqgnCFzwiCZZ/cGNd1lq4/7akDWMxdhVlucjmnOQ==
|
||||
dependencies:
|
||||
follow-redirects "^1.14.9"
|
||||
form-data "^4.0.0"
|
||||
|
||||
babel-code-frame@^6.26.0:
|
||||
version "6.26.0"
|
||||
resolved "https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-6.26.0.tgz#63fd43f7dc1e3bb7ce35947db8fe369a3f58c74b"
|
||||
|
@ -6115,7 +6107,7 @@ flora-colossus@^1.0.0:
|
|||
debug "^4.1.1"
|
||||
fs-extra "^7.0.0"
|
||||
|
||||
follow-redirects@^1.0.0, follow-redirects@^1.14.9:
|
||||
follow-redirects@^1.0.0:
|
||||
version "1.14.9"
|
||||
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.14.9.tgz#dd4ea157de7bfaf9ea9b3fbd85aa16951f78d8d7"
|
||||
integrity sha512-MQDfihBQYMcyy5dhRDJUHcw7lb2Pv/TuE6xP1vyraLukNDHKbDxDNaOE3NbCAdKQApno+GPRyo1YAp89yCjK4w==
|
||||
|
|
Loading…
Reference in New Issue