2018-10-25 17:42:21 +00:00
|
|
|
{
|
|
|
|
"name": "example-jest-vtu",
|
|
|
|
"scripts": {
|
|
|
|
"dev": "nuxt",
|
|
|
|
"build": "nuxt build",
|
|
|
|
"start": "nuxt start",
|
|
|
|
"generate": "nuxt generate",
|
2019-01-22 07:34:19 +00:00
|
|
|
"test": "jest",
|
|
|
|
"post-update": "yarn upgrade --latest"
|
2018-10-25 17:42:21 +00:00
|
|
|
},
|
|
|
|
"dependencies": {
|
|
|
|
"nuxt-edge": "latest"
|
|
|
|
},
|
|
|
|
"devDependencies": {
|
|
|
|
"@babel/core": "^7.1.2",
|
|
|
|
"@vue/test-utils": "^1.0.0-beta.25",
|
|
|
|
"babel-core": "^7.0.0-bridge.0",
|
|
|
|
"babel-jest": "^23.6.0",
|
|
|
|
"jest": "^23.6.0",
|
|
|
|
"jest-serializer-vue": "^2.0.2",
|
2019-01-17 21:45:17 +00:00
|
|
|
"vue-jest": "^3.0.2"
|
2018-10-25 17:42:21 +00:00
|
|
|
},
|
|
|
|
"jest": {
|
|
|
|
"moduleFileExtensions": [
|
|
|
|
"js",
|
|
|
|
"json",
|
|
|
|
"vue"
|
|
|
|
],
|
|
|
|
"watchman": false,
|
|
|
|
"moduleNameMapper": {
|
|
|
|
"^~/(.*)$": "<rootDir>/$1",
|
|
|
|
"^~~/(.*)$": "<rootDir>/$1"
|
|
|
|
},
|
|
|
|
"transform": {
|
2019-01-17 21:45:17 +00:00
|
|
|
"^.+\\.js$": "babel-jest",
|
|
|
|
".*\\.(vue)$": "vue-jest"
|
2018-10-25 17:42:21 +00:00
|
|
|
},
|
|
|
|
"snapshotSerializers": [
|
2019-01-17 21:45:17 +00:00
|
|
|
"jest-serializer-vue"
|
2018-10-25 17:42:21 +00:00
|
|
|
],
|
|
|
|
"collectCoverage": true,
|
|
|
|
"collectCoverageFrom": [
|
|
|
|
"<rootDir>/components/**/*.vue",
|
|
|
|
"<rootDir>/pages/*.vue"
|
2019-01-17 21:45:17 +00:00
|
|
|
],
|
|
|
|
"testURL": "http://localhost/"
|
2018-10-25 17:42:21 +00:00
|
|
|
}
|
|
|
|
}
|