-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
29 lines (29 loc) · 850 Bytes
/
jest.config.js
File metadata and controls
29 lines (29 loc) · 850 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
export default {
testEnvironment: "node",
testMatch: ["<rootDir>/tests/**/*.test.ts"],
collectCoverageFrom: ["src/**/*.ts", "!src/**/*.d.ts", "!src/**/index.ts"],
coverageDirectory: "coverage",
coverageReporters: ["text", "lcov", "html"],
setupFilesAfterEnv: ["<rootDir>/tests/setup.ts"],
testTimeout: 10000,
transform: {
"^.+\\.(t|j)sx?$": [
"@swc/jest",
{
sourceMaps: true,
module: { type: "es6" },
jsc: {
target: "es2022",
parser: { syntax: "typescript", tsx: false },
transform: {},
},
},
],
},
extensionsToTreatAsEsm: [".ts"],
moduleNameMapper: {
"^(\\.{1,2}/.*)\\.js$": "$1",
"^@t3-oss/env-core$": "<rootDir>/tests/__mocks__/@t3-oss/env-core.js",
},
transformIgnorePatterns: ["node_modules/(?!@modelcontextprotocol)"],
};