-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
37 lines (37 loc) · 995 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
29
30
31
32
33
34
35
36
37
module.exports = {
testTimeout: 20000, // https://github.com/facebook/jest/issues/11607#issuecomment-899955497
verbose: true,
transform: {
'^.+\\.ts?$': 'ts-jest',
},
preset: 'jest-dynalite',
testRegex: 'test\\.ts$',
setupFiles: ['./setupJest.js'],
maxWorkers: '50%',
// collectCoverage: true,
// collectCoverageFrom: [
// '**/src/**/*',
// // exclude main middleware
// '!**/src/middleware/index.ts',
// // exclude snapshots
// '!**/*.snap',
// // exclude .webpack folder
// '!**.webpack/**/*',
// // no need to test resolver index
// '!**/src/resolver/index.ts',
// // exclude gql server definitions
// '!**/src/handler/server.ts',
// // exclude mock folder
// '!**/__mock__/**/*',
// // exclude serverless folder
// '!**/.serverless/**/*',
// ],
// coverageThreshold: {
// global: {
// branches: 100,
// functions: 100,
// lines: 100,
// statements: 100,
// },
// },
};