-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjest.config.js
More file actions
37 lines (37 loc) · 977 Bytes
/
jest.config.js
File metadata and controls
37 lines (37 loc) · 977 Bytes
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 = {
moduleFileExtensions: ['js', 'json', 'ts'],
rootDir: '.',
testRegex: '.*\\.spec\\.ts$',
transform: {
'^.+\\.(t|j)s$': [
'ts-jest',
{
tsconfig: '<rootDir>/apps/server/tsconfig.json',
},
],
},
collectCoverageFrom: [
'apps/server/**/*.(t|j)s',
'!apps/server/**/*.module.ts',
'!apps/server/main.ts',
'!apps/server/**/*.dto.ts',
'!apps/server/**/*.interface.ts',
],
coverageDirectory: './coverage',
testEnvironment: 'node',
roots: ['<rootDir>/apps/server'],
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/apps/server/$1',
},
testPathIgnorePatterns: ['/node_modules/', '/dist/'],
maxWorkers: 1,
reporters: [
"default",
["<rootDir>/jest-reporters/dual-stream-reporter.js", {
logsPath: "test-artifacts/logs.txt",
errorsPath: "test-artifacts/errors.txt",
stdoutPath: "test-artifacts/stdout.txt",
stderrPath: "test-artifacts/stderr.txt"
}]
],
};