Skip to content

Commit d751980

Browse files
committed
test: update jest config
1 parent f7b7678 commit d751980

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

jest.config.ts

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import type { InitialOptionsTsJest } from "ts-jest";
1+
import type { JestConfigWithTsJest } from "ts-jest";
22

3-
const config: InitialOptionsTsJest = {
3+
const config: JestConfigWithTsJest = {
44
preset: "ts-jest",
55
coverageDirectory: "coverage",
66
coverageReporters: ["html", "lcov", "text"],
@@ -10,19 +10,15 @@ const config: InitialOptionsTsJest = {
1010
"^purgecss-from-html$": "<rootDir>/../purgecss-from-html/src",
1111
},
1212
testMatch: ["<rootDir>/__tests__/**/*test.ts"],
13-
globals: {
14-
"ts-jest": {
15-
tsconfig: {
16-
types: ["jest"],
17-
},
18-
},
13+
transform: {
14+
"^.+.tsx?$": ["ts-jest",{}],
1915
},
2016
};
2117

2218
export function createConfig(
2319
rootDir: string,
2420
displayName: string,
25-
): InitialOptionsTsJest {
21+
): JestConfigWithTsJest {
2622
return {
2723
...config,
2824
rootDir,

0 commit comments

Comments
 (0)