This commit is contained in:
Ulf Gebhardt 2022-11-18 10:53:22 +01:00
parent e32054acb8
commit ba72956536
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -13,13 +13,13 @@ module.exports = {
'!**/plugins/**', '!**/plugins/**',
'!**/.eslintrc.js', '!**/.eslintrc.js',
'!**/.prettierrc.js', '!**/.prettierrc.js',
'!**/nuxt.config.js' '!**/nuxt.config.js',
], ],
coverageReporters: ['lcov', 'text'], coverageReporters: ['lcov', 'text'],
setupFiles: ['<rootDir>/test/registerContext.js', '<rootDir>/test/testSetup.js'], setupFiles: ['<rootDir>/test/registerContext.js', '<rootDir>/test/testSetup.js'],
transform: { transform: {
'.*\\.(vue)$': 'vue-jest', '.*\\.(vue)$': 'vue-jest',
'^.+\\.js$': 'babel-jest' '^.+\\.js$': 'babel-jest',
}, },
testMatch: ['**/?(*.)+(spec|test).js?(x)'], testMatch: ['**/?(*.)+(spec|test).js?(x)'],
modulePathIgnorePatterns: ['<rootDir>/build/'], modulePathIgnorePatterns: ['<rootDir>/build/'],
@ -27,11 +27,7 @@ module.exports = {
'\\.(svg)$': '<rootDir>/test/fileMock.js', '\\.(svg)$': '<rootDir>/test/fileMock.js',
'\\.(css|less)$': 'identity-obj-proxy', '\\.(css|less)$': 'identity-obj-proxy',
'^@/(.*)$': '<rootDir>/src/$1', '^@/(.*)$': '<rootDir>/src/$1',
'^~/(.*)$': '<rootDir>/$1' '^~/(.*)$': '<rootDir>/$1',
}, },
moduleFileExtensions: [ moduleFileExtensions: ['js', 'json', 'vue'],
'js',
'json',
'vue'
]
} }