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": {
|
2019-02-01 13:06:06 +00:00
|
|
|
"nuxt": "latest"
|
2018-10-25 17:42:21 +00:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2019-03-04 21:07:04 +00:00
|
|
|
"@babel/core": "^7.3.4",
|
|
|
|
"@vue/test-utils": "^1.0.0-beta.29",
|
|
|
|
"babel-jest": "^24.1.0",
|
|
|
|
"jest": "^24.1.0",
|
2018-10-25 17:42:21 +00:00
|
|
|
"jest-serializer-vue": "^2.0.2",
|
2019-03-04 21:07:04 +00:00
|
|
|
"vue-jest": "^4.0.0-beta.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
|
|
|
}
|
|
|
|
}
|