mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-17 11:15:14 +00:00
48 lines
1020 B
JSON
48 lines
1020 B
JSON
{
|
|
"name": "example-jest-vtu",
|
|
"scripts": {
|
|
"dev": "nuxt",
|
|
"build": "nuxt build",
|
|
"start": "nuxt start",
|
|
"generate": "nuxt generate",
|
|
"test": "jest",
|
|
"post-update": "yarn upgrade --latest"
|
|
},
|
|
"dependencies": {
|
|
"nuxt": "latest"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "^7.1.2",
|
|
"@vue/test-utils": "^1.0.0-beta.25",
|
|
"babel-jest": "^24.0.0",
|
|
"jest": "^24.0.0",
|
|
"jest-serializer-vue": "^2.0.2",
|
|
"vue-jest": "^3.0.2"
|
|
},
|
|
"jest": {
|
|
"moduleFileExtensions": [
|
|
"js",
|
|
"json",
|
|
"vue"
|
|
],
|
|
"watchman": false,
|
|
"moduleNameMapper": {
|
|
"^~/(.*)$": "<rootDir>/$1",
|
|
"^~~/(.*)$": "<rootDir>/$1"
|
|
},
|
|
"transform": {
|
|
"^.+\\.js$": "babel-jest",
|
|
".*\\.(vue)$": "vue-jest"
|
|
},
|
|
"snapshotSerializers": [
|
|
"jest-serializer-vue"
|
|
],
|
|
"collectCoverage": true,
|
|
"collectCoverageFrom": [
|
|
"<rootDir>/components/**/*.vue",
|
|
"<rootDir>/pages/*.vue"
|
|
],
|
|
"testURL": "http://localhost/"
|
|
}
|
|
}
|