-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
29 lines (29 loc) · 802 Bytes
/
jest.config.js
File metadata and controls
29 lines (29 loc) · 802 Bytes
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
module.exports = {
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/$1',
'^~/(.*)$': '<rootDir>/$1',
'^vue$': 'vue/dist/vue.common.js',
},
moduleFileExtensions: ['ts', 'js', 'vue', 'json'],
transform: {
'^.+\\.ts$': 'ts-jest',
'^.+\\.js$': 'babel-jest',
'.*\\.(vue)$': 'vue-jest',
},
collectCoverage: false, // set on yarn test:units to true
collectCoverageFrom: [
'<rootDir>/components/**/*',
'<rootDir>/pages/**/*',
'<rootDir>/layouts/**/*',
'<rootDir>/store/**/*',
'<rootDir>/serverlessFunctions/**/*',
],
// only .vue files ?
// collectCoverageFrom: [
// '<rootDir>/components/**/*.vue',
// '<rootDir>/pages/**/*.vue',
// '<rootDir>/layouts/**/*.vue',
// '<rootDir>/store/**/*.vue',
// '<rootDir>/utils/**/*',
// ],
}