{ "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": "2.x" }, "devDependencies": { "@babel/core": "^7.3.4", "@vue/test-utils": "^1.0.0-beta.29", "babel-jest": "^24.1.0", "jest": "^24.1.0", "jest-serializer-vue": "^2.0.2", "vue-jest": "^4.0.0-beta.2" }, "jest": { "moduleFileExtensions": [ "js", "json", "vue" ], "watchman": false, "moduleNameMapper": { "^~/(.*)$": "/$1", "^~~/(.*)$": "/$1" }, "transform": { "^.+\\.js$": "babel-jest", ".*\\.(vue)$": "vue-jest" }, "snapshotSerializers": [ "jest-serializer-vue" ], "collectCoverage": true, "collectCoverageFrom": [ "/components/**/*.vue", "/pages/*.vue" ], "testURL": "http://localhost/" } }