-
Notifications
You must be signed in to change notification settings - Fork 1.5k
/
jest.config.js
30 lines (30 loc) · 921 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
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
collectCoverage: process.env.CI ? true : false,
coverageReporters: ['clover'],
coverageDirectory: 'src/__tests__/coverage',
modulePathIgnorePatterns: [
'<rootDir>/dist/',
'<rootDir>/fixtures/',
'<rootDir>/generator-build/',
'<rootDir>/runtime/',
'<rootDir>/runtime-dist/',
'<rootDir>/sandbox/',
'<rootDir>/scripts/',
'<rootDir>/src/__tests__/benchmarks/',
'<rootDir>/src/__tests__/types/.*/test.ts',
'<rootDir>/src/__tests__/integration/happy/exhaustive-schema/generated-dmmf.ts',
'__helpers__/',
'node_modules/',
'index.ts',
'index.d.ts',
'index.js',
'index.test-d.ts',
'.bench.ts',
],
collectCoverageFrom: ['src/**/*.ts', '!**/__tests__/**/*'],
snapshotSerializers: ['./helpers/jestSnapshotSerializer'],
testTimeout: 90000,
setupFiles: ['./helpers/jestSetup.js'],
}