Skip to content

Commit 57f955d

Browse files
authored
Update ts-jest config (#533)
1 parent c34215d commit 57f955d

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

jest.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
module.exports = {
22
preset: "ts-jest",
33
testEnvironment: "node",
4+
globals: {
5+
"ts-jest": {
6+
tsconfig: "tsconfig.jest.json",
7+
},
8+
},
49
};

tsconfig.jest.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"compilerOptions": {
3+
"baseUrl": "./src",
4+
"declaration": true,
5+
"esModuleInterop": true,
6+
"lib": ["ESNext"],
7+
"module": "ESNext",
8+
"moduleResolution": "node",
9+
"noImplicitAny": true,
10+
"noImplicitReturns": true,
11+
"noUnusedLocals": true,
12+
"outDir": "./dist/esm",
13+
"removeComments": true,
14+
"skipLibCheck": true,
15+
"sourceMap": true,
16+
"strict": true,
17+
"target": "ES2018"
18+
},
19+
"include": ["src"],
20+
"exclude": ["examples/*", "tests/**/*"]
21+
}

0 commit comments

Comments
 (0)