Skip to content

Commit

Permalink
chore!: update vue-jest to v4.x (#6335)
Browse files Browse the repository at this point in the history
  • Loading branch information
sodatea committed Mar 10, 2021
1 parent 7fa6837 commit 59b6eb9
Show file tree
Hide file tree
Showing 4 changed files with 107 additions and 171 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ test('should work without Babel', async () => {
await project.run(`vue-cli-service test:unit`)

await project.run(`vue-cli-service test:unit --coverage --collectCoverageFrom="src/**/*.{js,vue}"`)
const appCoverage = await project.read('coverage/lcov-report/App.vue.html')
const appCoverage = await project.read('coverage/lcov-report/src/App.vue.html')
expect(appCoverage).toBeTruthy()
})

Expand Down
4 changes: 1 addition & 3 deletions packages/@vue/cli-plugin-unit-jest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,14 @@
"@babel/plugin-transform-modules-commonjs": "^7.12.13",
"@types/jest": "^26.0.20",
"@vue/cli-shared-utils": "^5.0.0-alpha.5",
"babel-core": "^7.0.0-bridge.0",
"babel-jest": "^26.6.3",
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.2",
"deepmerge": "^4.2.2",
"jest": "^26.6.3",
"jest-serializer-vue": "^2.0.2",
"jest-transform-stub": "^2.0.0",
"jest-watch-typeahead": "^0.6.1",
"ts-jest": "^26.5.1",
"vue-jest": "^3.0.5"
"vue-jest": "^4.0.1"
},
"devDependencies": {
"@vue/test-utils": "^1.1.3"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ module.exports = deepmerge(
},
globals: {
'vue-jest': {
babelConfig: {
plugins: ['babel-plugin-transform-es2015-modules-commonjs']
transform: {
'^jsx?$': require.resolve('./esmoduleTransformer')
}
}
}
Expand Down
Loading

0 comments on commit 59b6eb9

Please sign in to comment.