summaryrefslogtreecommitdiffstats
path: root/jest.config.js
diff options
context:
space:
mode:
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',
},
}