-
-
Notifications
You must be signed in to change notification settings - Fork 35
/
jest.config.js
45 lines (40 loc) · 1.15 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
module.exports = {
// An array of glob patterns indicating a set of files for which coverage information should be collected
collectCoverageFrom: [
'src/**/*.{js,ts}'
],
// An array of regexp pattern strings used to skip coverage collection
coveragePathIgnorePatterns: [
'/dist/',
'\\.d\\.ts$',
'src/utils/ErrorMapper.ts'
],
// An array of directory names to be searched recursively up from the requiring module's location
moduleDirectories: [
'node_modules',
'src'
],
// A preset that is used as a base for Jest's configuration
preset: 'ts-jest',
// The test environment that will be used for testing
testEnvironment: 'screeps-jest',
// The glob patterns Jest uses to detect test files
testMatch: [
'**/*.spec.ts',
'!**/node_modules/**',
'!**/dist/**'
],
"transform": {
"^.+\\.[tj]s$": "ts-jest"
},
"transformIgnorePatterns": [
"<rootDir>/node_modules/(?!base32768)"
],
"globals": {
"ts-jest": {
"tsconfig": {
"allowJs": true
}
}
}
};