mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-13 09:33:54 +00:00
fix(examples): use testURL and module names (#4777)
This commit is contained in:
parent
7e5cb42275
commit
c83bcb046a
@ -5,7 +5,7 @@
|
|||||||
"build": "nuxt build",
|
"build": "nuxt build",
|
||||||
"start": "nuxt start",
|
"start": "nuxt start",
|
||||||
"generate": "nuxt generate",
|
"generate": "nuxt generate",
|
||||||
"test": "jest ."
|
"test": "jest"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"nuxt-edge": "latest"
|
"nuxt-edge": "latest"
|
||||||
@ -17,7 +17,7 @@
|
|||||||
"babel-jest": "^23.6.0",
|
"babel-jest": "^23.6.0",
|
||||||
"jest": "^23.6.0",
|
"jest": "^23.6.0",
|
||||||
"jest-serializer-vue": "^2.0.2",
|
"jest-serializer-vue": "^2.0.2",
|
||||||
"vue-jest": "^2.6.0"
|
"vue-jest": "^3.0.2"
|
||||||
},
|
},
|
||||||
"jest": {
|
"jest": {
|
||||||
"moduleFileExtensions": [
|
"moduleFileExtensions": [
|
||||||
@ -31,16 +31,17 @@
|
|||||||
"^~~/(.*)$": "<rootDir>/$1"
|
"^~~/(.*)$": "<rootDir>/$1"
|
||||||
},
|
},
|
||||||
"transform": {
|
"transform": {
|
||||||
"^.+\\.js$": "<rootDir>/node_modules/babel-jest",
|
"^.+\\.js$": "babel-jest",
|
||||||
".*\\.(vue)$": "<rootDir>/node_modules/vue-jest"
|
".*\\.(vue)$": "vue-jest"
|
||||||
},
|
},
|
||||||
"snapshotSerializers": [
|
"snapshotSerializers": [
|
||||||
"<rootDir>/node_modules/jest-serializer-vue"
|
"jest-serializer-vue"
|
||||||
],
|
],
|
||||||
"collectCoverage": true,
|
"collectCoverage": true,
|
||||||
"collectCoverageFrom": [
|
"collectCoverageFrom": [
|
||||||
"<rootDir>/components/**/*.vue",
|
"<rootDir>/components/**/*.vue",
|
||||||
"<rootDir>/pages/*.vue"
|
"<rootDir>/pages/*.vue"
|
||||||
]
|
],
|
||||||
|
"testURL": "http://localhost/"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user