Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 59b6eb9

Browse filesBrowse files
authored
chore!: update vue-jest to v4.x (#6335)
1 parent 7fa6837 commit 59b6eb9
Copy full SHA for 59b6eb9

File tree

Expand file treeCollapse file tree

4 files changed

+107
-171
lines changed
Filter options
Expand file treeCollapse file tree

4 files changed

+107
-171
lines changed

‎packages/@vue/cli-plugin-unit-jest/__tests__/jestPlugin.spec.js

Copy file name to clipboardExpand all lines: packages/@vue/cli-plugin-unit-jest/__tests__/jestPlugin.spec.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ test('should work without Babel', async () => {
6969
await project.run(`vue-cli-service test:unit`)
7070

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

‎packages/@vue/cli-plugin-unit-jest/package.json

Copy file name to clipboardExpand all lines: packages/@vue/cli-plugin-unit-jest/package.json
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,14 @@
2727
"@babel/plugin-transform-modules-commonjs": "^7.12.13",
2828
"@types/jest": "^26.0.20",
2929
"@vue/cli-shared-utils": "^5.0.0-alpha.5",
30-
"babel-core": "^7.0.0-bridge.0",
3130
"babel-jest": "^26.6.3",
32-
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.2",
3331
"deepmerge": "^4.2.2",
3432
"jest": "^26.6.3",
3533
"jest-serializer-vue": "^2.0.2",
3634
"jest-transform-stub": "^2.0.0",
3735
"jest-watch-typeahead": "^0.6.1",
3836
"ts-jest": "^26.5.1",
39-
"vue-jest": "^3.0.5"
37+
"vue-jest": "^4.0.1"
4038
},
4139
"devDependencies": {
4240
"@vue/test-utils": "^1.1.3"

‎packages/@vue/cli-plugin-unit-jest/presets/no-babel/jest-preset.js

Copy file name to clipboardExpand all lines: packages/@vue/cli-plugin-unit-jest/presets/no-babel/jest-preset.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ module.exports = deepmerge(
1212
},
1313
globals: {
1414
'vue-jest': {
15-
babelConfig: {
16-
plugins: ['babel-plugin-transform-es2015-modules-commonjs']
15+
transform: {
16+
'^jsx?$': require.resolve('./esmoduleTransformer')
1717
}
1818
}
1919
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.