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",
|
2019-02-12 13:05:37 +00:00
|
|
|
"babel-jest": "^24.0.0",
|
|
|
|
"jest": "^24.0.0",
|
2018-10-25 17:42:21 +00:00
|
|
|
"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
|
|
|
}
|
|
|
|
}
|