Skip to content

Commit

Permalink
Specified jsc target for swc
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaKGoldberg committed Feb 20, 2022
1 parent 67c111a commit 8750704
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module.exports = {
collectCoverageFrom: [
"./src/**/*.ts",
"!./src/index.ts",
"!./src/**/*.d.ts",
"!./src/**/*.stubs.ts",
"!./src/adapters/*.ts",
Expand All @@ -22,6 +23,13 @@ module.exports = {
testRegex: "src(.*)\\.test\\.tsx?$",
testEnvironment: "node",
transform: {
"^.+\\.(t|j)s$": "@swc/jest",
"^.+\\.(t|j)s$": [
"@swc/jest",
{
jsc: {
target: "es2021",
},
},
],
},
};

0 comments on commit 8750704

Please sign in to comment.