Skip to content

Commit

Permalink
Remove unneeded and problematic vue-cli-plugin-unit-test
Browse files Browse the repository at this point in the history
It was causing issues during dependency upgrades and wasn't really used
except for its preset definition.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
  • Loading branch information
PVince81 committed Sep 26, 2022
1 parent ac2e94f commit 1342ca3
Show file tree
Hide file tree
Showing 3 changed files with 21,060 additions and 44,188 deletions.
10 changes: 9 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ const ignorePatterns = [
]

module.exports = {
preset: '@vue/cli-plugin-unit-jest/presets/no-babel',
testMatch: ['<rootDir>/apps/*/src/**/*.(spec|test).(ts|js)'],
modulePathIgnorePatterns: ["<rootDir>/apps-extra/"],
transformIgnorePatterns: [
Expand All @@ -45,8 +44,17 @@ module.exports = {
collectCoverageFrom: [
'<rootDir>/apps/*/src/**/*.{js,vue}',
],

testEnvironment: 'jest-environment-jsdom',

moduleFileExtensions: [
'js',
'vue',
],

transform: {
// process `*.js` files with `babel-jest`
'.*\\.(js)$': 'babel-jest',
'^.+\\.vue$': '@vue/vue2-jest',
},
}
Loading

0 comments on commit 1342ca3

Please sign in to comment.