-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.js
33 lines (33 loc) · 957 Bytes
/
jest.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
module.exports = {
roots: ['<rootDir>/test'],
preset: 'ts-jest',
setupFilesAfterEnv: [
'<rootDir>/test/setup/composition-api.ts',
'<rootDir>/test/setup/vuetify.ts'
],
testPathIgnorePatterns: [
'/node_modules/',
'.firebase',
'<rootDir>/test/unit/snapshot.spec.ts'
],
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/$1',
'^~/(.*)$': '<rootDir>/src/$1',
'^vue$': 'vue/dist/vue.common.js',
'^.+\\.(css|less)$': '<rootDir>/node_modules/jest-transform-stub'
},
modulePathIgnorePatterns: ['<rootDir>/.firebase'],
moduleFileExtensions: ['js', 'vue', 'ts', 'json'],
transform: {
'^.+\\.js$': 'babel-jest',
'.*\\.(vue)$': 'vue-jest',
'^.+\\.(ts|tsx)$': 'ts-jest',
'.+\\.(css|scss|png|jpg|svg)$': 'jest-transform-stub'
},
collectCoverage: true,
collectCoverageFrom: [
'<rootDir>/src/functions/**/*.ts',
'<rootDir>/src/components/**/*.vue',
'<rootDir>/src/pages/**/*.vue'
]
}