Skip to content

Commit

Permalink
Used SWC instead of Babel for Jest tests (#1367)
Browse files Browse the repository at this point in the history
* Used SWC instead of Babel for Jest tests

* Specified jsc target for swc

* Remove babel config

* Remove unnecessary regenerator-runtime

* Remove unnecessary @swc/core dependency

* Nit: sort of alphabetize coverage list
  • Loading branch information
JoshuaKGoldberg committed Feb 21, 2022
1 parent 3686e55 commit 65f9090
Show file tree
Hide file tree
Showing 4 changed files with 4,436 additions and 6,502 deletions.
3 changes: 0 additions & 3 deletions babel.config.js

This file was deleted.

11 changes: 11 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ module.exports = {
"!./src/converters/editorConfigs/editorSettingsConverters.ts",
"!./src/converters/lintConfigs/rules/ruleConverters.ts",
"!./src/converters/lintConfigs/rules/ruleMergers.ts",
"!./src/index.ts",
],
coverageThreshold: {
global: {
Expand All @@ -21,4 +22,14 @@ module.exports = {
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"],
testRegex: "src(.*)\\.test\\.tsx?$",
testEnvironment: "node",
transform: {
"^.+\\.(t|j)s$": [
"@swc/jest",
{
jsc: {
target: "es2021",
},
},
],
},
};
Loading

0 comments on commit 65f9090

Please sign in to comment.