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", "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/"
} }
} }