Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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]>
  • Loading branch information
PVince81 committed Sep 26, 2022
commit 7622fdfce3544cf29e32a002627215527ece26e2
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