-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.js
51 lines (41 loc) · 982 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
module.exports = {
verbose: true,
testEnvironment: 'jsdom',
moduleFileExtensions: [
'js',
'json',
'vue'
],
transformIgnorePatterns: [
'node_modules/(?!vuetify)'
],
setupFilesAfterEnv: ["<rootDir>/tests/setup.js"],
moduleNameMapper: {
"^.+\\.(css|styl|less|sass|scss|png|jpg|ttf|woff|woff2)$": "jest-transform-stub",
// enable import beginning with @/ - as reference to <root>/src/ folder
"^@/(.*)$": "<rootDir>/src/$1"
},
modulePathIgnorePatterns: [
'<rootDir>/build/',
'<rootDir>/dist/',
'<rootDir>/coverage/'
],
transform: {
'.*\\.(vue)$': 'vue-jest',
'.*\\.(js)$': 'babel-jest'
},
collectCoverage: true,
collectCoverageFrom: ['src/**/*.{js,vue}', '!**/node_modules/**'],
coveragePathIgnorePatterns: [
'src/registerServiceWorker.js',
'src/main.js'
],
coverageThreshold: {
global: {
branches: 86,
functions: 90,
lines: 90,
statements: 90
}
},
}