Skip to content

Commit 6e01e8f

Browse files
Specified jsc target for swc
1 parent ad1555e commit 6e01e8f

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

jest.config.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
module.exports = {
22
collectCoverageFrom: [
33
"./src/**/*.ts",
4+
"!./src/index.ts",
45
"!./src/**/*.d.ts",
56
"!./src/**/*.stubs.ts",
67
"!./src/adapters/*.ts",
@@ -22,6 +23,13 @@ module.exports = {
2223
testRegex: "src(.*)\\.test\\.tsx?$",
2324
testEnvironment: "node",
2425
transform: {
25-
"^.+\\.(t|j)s$": "@swc/jest",
26+
"^.+\\.(t|j)s$": [
27+
"@swc/jest",
28+
{
29+
jsc: {
30+
target: "es2021",
31+
},
32+
},
33+
],
2634
},
2735
};

0 commit comments

Comments
 (0)