Skip to content

Commit bc9f3d3

Browse files
committed
Remove unneeded and problematic vue-cli-plugin-unit-test
It was causing issues during dependency upgrades and wasn't really used except for its preset definition. Signed-off-by: Vincent Petry <[email protected]>
1 parent 6f8b391 commit bc9f3d3

File tree

3 files changed

+21383
-44225
lines changed

3 files changed

+21383
-44225
lines changed

jest.config.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ const ignorePatterns = [
3434
]
3535

3636
module.exports = {
37-
preset: '@vue/cli-plugin-unit-jest/presets/no-babel',
3837
testMatch: ['<rootDir>/apps/*/src/**/*.(spec|test).(ts|js)'],
3938
modulePathIgnorePatterns: ["<rootDir>/apps-extra/"],
4039
transformIgnorePatterns: [
@@ -45,8 +44,17 @@ module.exports = {
4544
collectCoverageFrom: [
4645
'<rootDir>/apps/*/src/**/*.{js,vue}',
4746
],
47+
48+
testEnvironment: 'jest-environment-jsdom',
49+
50+
moduleFileExtensions: [
51+
'js',
52+
'vue',
53+
],
54+
4855
transform: {
4956
// process `*.js` files with `babel-jest`
5057
'.*\\.(js)$': 'babel-jest',
58+
'^.+\\.vue$': '@vue/vue2-jest',
5159
},
5260
}

0 commit comments

Comments
 (0)