-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjest.config.ts
More file actions
33 lines (31 loc) · 717 Bytes
/
jest.config.ts
File metadata and controls
33 lines (31 loc) · 717 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
import type { Config } from "jest";
const config: Config = {
transform: {
"^.+\\.(ts|js)$": [
"@swc/jest",
{
jsc: {
baseUrl: ".",
parser: {
syntax: "typescript",
tsx: true,
dynamicImport: true,
},
paths: {
"@cli/*": ["./cli/*"],
"@scripts/*": ["./scripts/*"],
"@shared/*": ["./shared/*"],
},
target: "esnext",
},
},
],
},
testEnvironment: "node",
moduleNameMapper: {
"^@cli/(.*)$": "<rootDir>/cli/$1",
"^@shared/(.*)$": "<rootDir>/shared/$1",
},
setupFilesAfterEnv: ["<rootDir>/jest.setup.ts"],
};
export default config;