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