Skip to content

Commit 8058bac

Browse files
committed
test: use @swc instead of ts-jest
1 parent b98eb72 commit 8058bac

File tree

3 files changed

+457
-104
lines changed

3 files changed

+457
-104
lines changed

jest.config.ts

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
import type { Config } from "@jest/types";
2+
23
const config: Config.InitialOptions = {
34
collectCoverageFrom: [
45
"<rootDir>/lib/**/*",
56
"!<rootDir>/lib/__fixtures__/**/*",
67
],
7-
globals: {
8-
"ts-jest": {
9-
tsconfig: "tsconfig.json",
10-
},
11-
},
128
moduleFileExtensions: ["ts", "js"],
139
transform: {
14-
"^.+\\.ts$": "ts-jest",
10+
"^.+\\.ts$": "@swc/jest",
1511
},
1612
testEnvironment: "node",
1713
testRegex: "\\.spec\\.[jt]s$",

0 commit comments

Comments
 (0)