fix(examples): use testURL and module names (#4777)

This commit is contained in:
Eduardo San Martin Morote 2019-01-17 22:45:17 +01:00 committed by Pooya Parsa
parent 7e5cb42275
commit c83bcb046a

View File

@ -5,7 +5,7 @@
"build": "nuxt build",
"start": "nuxt start",
"generate": "nuxt generate",
"test": "jest ."
"test": "jest"
},
"dependencies": {
"nuxt-edge": "latest"
@ -17,7 +17,7 @@
"babel-jest": "^23.6.0",
"jest": "^23.6.0",
"jest-serializer-vue": "^2.0.2",
"vue-jest": "^2.6.0"
"vue-jest": "^3.0.2"
},
"jest": {
"moduleFileExtensions": [
@ -31,16 +31,17 @@
"^~~/(.*)$": "<rootDir>/$1"
},
"transform": {
"^.+\\.js$": "<rootDir>/node_modules/babel-jest",
".*\\.(vue)$": "<rootDir>/node_modules/vue-jest"
"^.+\\.js$": "babel-jest",
".*\\.(vue)$": "vue-jest"
},
"snapshotSerializers": [
"<rootDir>/node_modules/jest-serializer-vue"
"jest-serializer-vue"
],
"collectCoverage": true,
"collectCoverageFrom": [
"<rootDir>/components/**/*.vue",
"<rootDir>/pages/*.vue"
]
],
"testURL": "http://localhost/"
}
}