-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathjest.config.js
More file actions
39 lines (30 loc) · 754 Bytes
/
jest.config.js
File metadata and controls
39 lines (30 loc) · 754 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
30
31
32
33
34
35
36
37
38
39
// For a detailed explanation regarding each configuration property, visit:
// https://jestjs.io/docs/en/configuration.html
const path = require('path')
module.exports = {
clearMocks: true,
coverageDirectory: 'coverage',
collectCoverageFrom: [
"src/**/*.js",
"!**/node_modules/**",
],
notify: true,
notifyMode: 'failure-change',
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/$1'
},
moduleFileExtensions: [
'js',
'json',
'vue'
],
rootDir: path.resolve(__dirname),
testEnvironment: 'node',
testTimeout: 10000,
transform: {
'^.+\\.vue$': '@vue/vue3-jest',
'.+\\.(css|styl|less|sass|scss|png|jpg|ttf|woff|woff2)$':
'jest-transform-stub',
'^.+\\.(js|jsx)?$': 'babel-jest'
}
};