-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathjest.config.js
33 lines (30 loc) · 909 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 = {
verbose: true,
collectCoverage: true,
coverageReporters: ['lcov', 'text', 'text-summary'],
transformIgnorePatterns: ['<rootDir>/node_modules'],
setupFilesAfterEnv: ['<rootDir>/.jest/setup.ts'],
snapshotSerializers: ['jest-serializer-vue'],
moduleFileExtensions: [
'vue',
'js',
'ts'
],
transform: {
'.*\\.vue$': 'vue-jest',
'.*\\.ts$': 'ts-jest',
'.+\\.(css|scss|svg|png|jpg|jpeg|ttf|woff|woff2)$': 'jest-transform-stub'
},
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/$1',
'^@@/(.*)$': '<rootDir>/src/modules/$1',
'^atoms': '<rootDir>/src/components/atoms',
'^molecules': '<rootDir>/src/components/molecules',
'^organisms': '<rootDir>/src/components/organisms',
'^templates': '<rootDir>/src/components/templates'
},
watchPlugins: [
'jest-watch-typeahead/filename',
'jest-watch-typeahead/testname'
]
}