summaryrefslogtreecommitdiffstats
path: root/jest.config.js
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2022-09-26 15:24:15 +0200
committerVincent Petry <vincent@nextcloud.com>2022-09-26 15:24:15 +0200
commit7622fdfce3544cf29e32a002627215527ece26e2 (patch)
tree7ddc2039b0f8d999b7e60c05f5c6e6f58dd6b9e5 /jest.config.js
parent8eb03e712aedc7c768c1d827732b957100eb22c3 (diff)
downloadnextcloud-server-7622fdfce3544cf29e32a002627215527ece26e2.tar.gz
nextcloud-server-7622fdfce3544cf29e32a002627215527ece26e2.zip
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 <vincent@nextcloud.com>
Diffstat (limited to 'jest.config.js')
-rw-r--r--jest.config.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/jest.config.js b/jest.config.js
index fe5eecc4a12..054ea7184d1 100644
--- a/jest.config.js
+++ b/jest.config.js
@@ -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: [
@@ -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',
},
}