forked from hinesboy/mavonEditor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
28 lines (28 loc) · 782 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
module.exports = {
transformIgnorePatterns: ["<rootDir>/node_modules/(?!auto-textarea|@vue|src)"],
testMatch: [
"**/tests/unit/*.spec.js"
],
verbose: true,
moduleFileExtensions: ['js', 'vue', 'md', 'html'],
moduleNameMapper: {
'\\.(css|scss)$': 'identity-obj-proxy',
'^@/(.*)$': '<rootDir>/src/$1'
},
transform: {
"^.+\\.js$": "<rootDir>/node_modules/babel-jest",
"^.+\\.vue$": "<rootDir>/node_modules/vue-jest",
'.*\\.(yml|html|md)$': 'jest-raw-loader'
},
// setupFiles: ['<rootDir>/tests/unit/setup.js'],
coverageDirectory: '<rootDir>/tests/unit/coverage',
collectCoverageFrom: [
'src/**/*.{js,vue}',
'!src/main.js',
'!src/dev/**',
'!**/node_modules/**'
],
snapshotSerializers: [
"jest-serializer-vue"
]
}