-
-
Notifications
You must be signed in to change notification settings - Fork 25
/
jest.config.js
27 lines (27 loc) · 880 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
module.exports = {
roots: ['<rootDir>'],
// modulePaths: ['<rootDir>'],
moduleDirectories: ['node_modules', '<rootDir>/server/node_modules'], // So server files also get watched
testEnvironment: 'node',
transform: {
'^.+\\.ts$': '@sucrase/jest-plugin',
// '^.+\\.ts$': '@swc/jest',
// '^.+\\.ts$': 'esbuild-jest',
},
// preset: 'ts-jest',
// verbose: true,
// testRegex: '.spec.[j,t]s$',
// testMatch: ['*.spec.ts'],
// testMatch: ['**/unit/core/**/*.spec.ts'],
// coverageDirectory: '.coverage',
// coverageReporters: ['text', 'text-summary'],
// coverageThreshold: {
// global: { statements: 90, lines: 90, functions: 90 },
// },
testPathIgnorePatterns: ['/build/', '/node_modules/', '/testFixture/', '/server/out', '/tests/out'],
// globals: {
// 'ts-jest': {
// tsconfig: 'tests/tsconfig.json',
// },
// },
};