forked from prisma/prisma
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
54 lines (54 loc) · 1.76 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
46
47
48
49
50
51
52
53
54
module.exports = {
transform: {
'^.+\\.(m?j|t)s$': '@swc/jest',
},
transformIgnorePatterns: [],
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>/scripts/',
'<rootDir>/tests/memory',
'<rootDir>/tests/functional',
'<rootDir>/tests/e2e',
'<rootDir>/src/__tests__/benchmarks/',
'<rootDir>/src/__tests__/types/.*/test.ts',
'<rootDir>/src/__tests__/types/.*/test.binary.ts',
'<rootDir>/src/__tests__/types/.*/test.library.ts',
'<rootDir>/src/__tests__/integration/happy/not-so-exhaustive-schema/common.ts',
'<rootDir>/src/__tests__/integration/happy/not-so-exhaustive-schema/generated-dmmf.ts',
'<rootDir>/src/__tests__/generation/__fixture__',
'<rootDir>/src/__tests__/integration/happy/not-so-exhaustive-schema-mongo/common.ts',
'<rootDir>/src/__tests__/integration/happy/not-so-exhaustive-schema-mongo/generated-dmmf.ts',
'__helpers__/',
'node_modules/',
'index.ts',
'index.d.ts',
'index.js',
'index.test-d.ts',
'.bench.ts',
],
collectCoverageFrom: ['src/**/*.ts', '!**/__tests__/**/*', '!src/**/*.test.ts'],
snapshotSerializers: ['@prisma/get-platform/src/test-utils/jestSnapshotSerializer'],
testTimeout: 90_000,
setupFiles: ['./helpers/jestSetup.js'],
openHandlesTimeout: 10_000,
reporters: [
'default',
[
'jest-junit',
{
addFileAttribute: 'true',
ancestorSeparator: ' › ',
classNameTemplate: '{classname}',
titleTemplate: '{title}',
},
],
],
}