-
Notifications
You must be signed in to change notification settings - Fork 64
Expand file tree
/
Copy pathjest.config.js
More file actions
46 lines (46 loc) · 911 Bytes
/
jest.config.js
File metadata and controls
46 lines (46 loc) · 911 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
40
41
42
43
44
45
46
module.exports = {
expand: true,
notify: true,
collectCoverage: true,
collectCoverageFrom: [
'src/**/*.ts'
],
moduleFileExtensions: [
'js', 'json', 'ts'
],
transform: {
'^.+\\.ts$': 'ts-jest'
},
transformIgnorePatterns: [
'/node_modules/'
],
moduleNameMapper: {
'^@/types': '<rootDir>/src/types/index.d.ts',
'^@/(.*)$': '<rootDir>/src/$1'
},
snapshotSerializers: [
'<rootDir>/node_modules/jest-serializer-vue'
],
testMatch: [
'**/tests/specs/**/*.spec.ts'
],
testURL: 'http://localhost/',
watchPlugins: [
'jest-watch-typeahead/filename',
'jest-watch-typeahead/testname'
],
watchPathIgnorePatterns: [
'<rootDir>/dist',
'<rootDir>/coverage',
'<rootDir>/playground',
'<rootDir>/node_modules'
],
globals: {
describe: true,
it: true,
expect: true,
'ts-jest': {
babelConfig: true
}
}
};