Skip to content

Commit 5b05508

Browse files
committed
add a fancy jest config for typescript
1 parent b5d4aa3 commit 5b05508

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

jest.config.mjs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
export default {
2+
preset: "ts-jest",
3+
testEnvironment: "node",
4+
extensionsToTreatAsEsm: [".ts"],
5+
transform: {
6+
"^.+\\.(ts|tsx)$": ["ts-jest", {
7+
useESM: true,
8+
}],
9+
},
10+
testTimeout: 50000,
11+
};

0 commit comments

Comments
 (0)