Skip to content

Commit

Permalink
Switch from babel to swc for running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
airhorns committed Sep 17, 2023
1 parent b6292c7 commit 957def4
Show file tree
Hide file tree
Showing 3 changed files with 683 additions and 1,921 deletions.
3 changes: 3 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
module.exports = {
testPathIgnorePatterns: ["node_modules", "/pkg"],
transform: {
"^.+\\.[jt]sx?$": ["@swc/jest", { sourceMaps: "inline" }],
},
};
20 changes: 9 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,32 +19,30 @@
"LICENSE.txt"
],
"scripts": {
"preinstall": "npx only-allow pnpm",
"build": "rm -rf pkg && tsc",
"watch": "tsc -w",
"test": "jest",
"preinstall": "npx only-allow pnpm",
"typecheck": "tsc --noEmit",
"lint": "pnpm run lint:prettier && pnpm run lint:eslint",
"lint:prettier": "node --max-old-space-size=4096 node_modules/.bin/prettier --check \"src/**/*.{js,ts,tsx}\"",
"lint:eslint": "node --max-old-space-size=4096 node_modules/.bin/eslint --quiet --ext ts,tsx src",
"lint:fix": "node --max-old-space-size=4096 node_modules/.bin/prettier --write --check \"src/**/*.{js,ts,tsx}\" && eslint --ext ts,tsx --fix src",
"prerelease": "gitpkg publish",
"prepublishOnly": "npm run build"
},
"dependencies": {},
"devDependencies": {
"@babel/core": "^7.14.6",
"@babel/preset-env": "^7.14.7",
"@babel/preset-typescript": "^7.14.5",
"@gadgetinc/eslint-config": "^0.3.0",
"@gadgetinc/prettier-config": "^0.3.0",
"@types/jest": "^26.0.23",
"@types/node": "^15.12.5",
"babel-jest": "^27.0.6",
"@swc/core": "^1.3.85",
"@swc/jest": "^0.2.29",
"@types/jest": "^29.5.4",
"@types/node": "^18.15.3",
"eslint": "^7.15.0",
"jest": "^27.0.6",
"jest": "^29.7.0",
"linked_module": "link:./spec/fixtures/linked_module",
"lodash": "*",
"prettier": "^2.2.1",
"typescript": "^4.3.0",
"linked_module": "link:./spec/fixtures/linked_module"
"typescript": "^5.2.2"
}
}
Loading

0 comments on commit 957def4

Please sign in to comment.