mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-24 06:35:10 +00:00
5c0d12fb13
* chore(examples): Add Jest + Vue Test Utils example * style: Lint * refactor: Rename button component & fix lint errors * refactor: Use export default * refactor: Babel 7 setup
47 lines
1.0 KiB
JSON
47 lines
1.0 KiB
JSON
{
|
|
"name": "example-jest-vtu",
|
|
"scripts": {
|
|
"dev": "nuxt",
|
|
"build": "nuxt build",
|
|
"start": "nuxt start",
|
|
"generate": "nuxt generate",
|
|
"test": "jest ."
|
|
},
|
|
"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",
|
|
"vue-jest": "^2.6.0"
|
|
},
|
|
"jest": {
|
|
"moduleFileExtensions": [
|
|
"js",
|
|
"json",
|
|
"vue"
|
|
],
|
|
"watchman": false,
|
|
"moduleNameMapper": {
|
|
"^~/(.*)$": "<rootDir>/$1",
|
|
"^~~/(.*)$": "<rootDir>/$1"
|
|
},
|
|
"transform": {
|
|
"^.+\\.js$": "<rootDir>/node_modules/babel-jest",
|
|
".*\\.(vue)$": "<rootDir>/node_modules/vue-jest"
|
|
},
|
|
"snapshotSerializers": [
|
|
"<rootDir>/node_modules/jest-serializer-vue"
|
|
],
|
|
"collectCoverage": true,
|
|
"collectCoverageFrom": [
|
|
"<rootDir>/components/**/*.vue",
|
|
"<rootDir>/pages/*.vue"
|
|
]
|
|
}
|
|
}
|