-
Notifications
You must be signed in to change notification settings - Fork 2
/
jest.config.js
25 lines (25 loc) · 935 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
/** @type {import('ts-jest').JestConfigWithTsJest} */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
projects: [
{
displayName: "@underdog-protocol/underdog-core-sdk",
roots: ["<rootDir>/packages/underdog-core-sdk"],
testMatch: ["<rootDir>/packages/underdog-core-sdk/tests/**/*.test.ts"],
globalSetup: "<rootDir>/packages/underdog-core-sdk/tests/setup.ts",
transform: {
"^.+\\.ts?$": ["ts-jest", { tsconfig: "<rootDir>/packages/underdog-core-sdk/tsconfig.json" }],
},
},
{
displayName: "@underdog-protocol/passport-sdk",
roots: ["<rootDir>/packages/passport-sdk"],
testMatch: ["<rootDir>/packages/passport-sdk/tests/**/*.test.ts"],
globalSetup: "<rootDir>/packages/passport-sdk/tests/setup.ts",
transform: {
"^.+\\.ts?$": ["ts-jest", { tsconfig: "<rootDir>/packages/passport-sdk/tsconfig.json" }],
},
}
]
};