-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
52 lines (51 loc) · 1.44 KB
/
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
52
/* eslint-disable */
module.exports =
{
'globals': {
'__DEV__': true
},
'verbose': true,
'testURL': 'http://localhost/',
'testEnvironment': 'jsdom',
'collectCoverage': false,
'collectCoverageFrom': [
'<rootDir>/src/**/*.{js}',
'<rootDir>/src/**/*.{vue}'
],
'coverageDirectory': '<rootDir>/test/coverage',
'testPathIgnorePatterns': [
'<rootDir>/components/coverage/',
'<rootDir>/test/cypress/',
'<rootDir>/test/coverage/',
'<rootDir>/dist/',
'<rootDir>/node_modules/'
],
'moduleFileExtensions': [
'js',
'json',
'vue'
],
'moduleNameMapper': {
'^vue$': 'vue/dist/vue.common.js',
'^@components/(.*)$': '<rootDir>/src/components/$1',
'^@/(.*)$': '<rootDir>/src/$1',
'quasar': 'quasar-framework/dist/umd/quasar.mat.umd.min.js',
// 'quasar': 'quasar-framework/src/index.umd.js'
},
'resolver': null,
'transformIgnorePatterns': [
'node_modules/core-js',
'node_modules/babel-runtime',
'node_modules/lodash',
'node_modules/vue'
],
'transform': {
'^.+\\.js$': '<rootDir>/node_modules/babel-jest',
'.*\\.(vue)$': '<rootDir>/node_modules/vue-jest'
},
'snapshotSerializers': [
'<rootDir>/node_modules/jest-serializer-vue'
],
'testRegex': '(/__tests__/.*|(\\.|/)(spec|test))\\.jsx?$',
'setupTestFrameworkScriptFile': '<rootDir>/src/setupJest.js'
}