|
|
@@ -3,7 +3,8 @@ module.exports = {
|
|
|
moduleNameMapper: {
|
|
|
'^@/(.*)$': '<rootDir>/$1',
|
|
|
'^~/(.*)$': '<rootDir>/$1',
|
|
|
- '^vue$': 'vue/dist/vue.common.js'
|
|
|
+ '^vue$': 'vue/dist/vue.common.js',
|
|
|
+ '\\.(css|sass)$': 'identity-obj-proxy'
|
|
|
},
|
|
|
moduleFileExtensions: [
|
|
|
'ts',
|
|
|
@@ -19,9 +20,13 @@ module.exports = {
|
|
|
collectCoverage: true,
|
|
|
collectCoverageFrom: [
|
|
|
'<rootDir>/components/**/*.vue',
|
|
|
- '<rootDir>/pages/**/*.vue'
|
|
|
+ '<rootDir>/pages/**/*.vue',
|
|
|
+ '<rootDir>/services/**/*.ts'
|
|
|
],
|
|
|
- testEnvironment: 'jsdom',
|
|
|
- testMatch: ['**/tests/unit/**/*.spec.js'],
|
|
|
- setupFiles: ['<rootDir>/tests/unit/index.ts']
|
|
|
+ setupFiles: ['<rootDir>/tests/unit/jest.setup.ts'],
|
|
|
+ testPathIgnorePatterns: [
|
|
|
+ 'node_modules',
|
|
|
+ 'tests/cypress'
|
|
|
+ ],
|
|
|
+ testEnvironment: 'jsdom'
|
|
|
}
|