-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
41 lines (41 loc) · 895 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
38
39
40
41
/** @type {import('ts-jest').JestConfigWithTsJest} */
module.exports = {
preset: 'ts-jest',
moduleFileExtensions: [
"js",
"json",
"ts"
],
rootDir: ".",
projects: [
{
preset: "ts-jest",
displayName: "browser",
testMatch: ['<rootDir>/packages/browser/**/*.spec.ts'],
},
{
preset: "ts-jest",
displayName: "cdn",
testMatch: ['<rootDir>/packages/cdn/**/*.spec.ts'],
},
{
preset: "ts-jest",
displayName: "server",
testMatch: ['<rootDir>/packages/server/**/*.spec.ts'],
},
{
preset: "ts-jest",
displayName: "shared",
testMatch: ['<rootDir>/packages/shared/**/*.spec.ts'],
},
],
testRegex: ".*\\.spec\\.ts$",
transform: {
"^.+\\.(t|j)s$": "ts-jest"
},
collectCoverageFrom: [
"**/*.(t|j)s"
],
coverageDirectory: "./coverage",
testEnvironment: 'node',
};