Skip to content

Commit

Permalink
Switch to vitest from jest
Browse files Browse the repository at this point in the history
  • Loading branch information
airhorns committed Sep 28, 2024
1 parent 0d932ba commit 7cba5ef
Show file tree
Hide file tree
Showing 11 changed files with 592 additions and 2,067 deletions.
9 changes: 1 addition & 8 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
module.exports = {
extends: "@gadgetinc/eslint-config",
plugins: [
"jest",
],
parserOptions: {
tsconfigRootDir: __dirname,
project: ["./tsconfig.json"],
},
ignorePatterns: [
"jest.config.js",
".eslintrc.js",
"spec/fixtures/**/*",
],
ignorePatterns: [".eslintrc.js", "spec/fixtures/**/*"],
};
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: ./.github/actions/setup-test-env
- run: pnpm build
- run: integration-test/test.sh
- run: pnpm jest
- run: pnpm test

lint:
runs-on: ubuntu-latest
Expand Down
8 changes: 0 additions & 8 deletions jest.config.js

This file was deleted.

9 changes: 3 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
"lint:eslint": "NODE_OPTIONS=\"--max-old-space-size=4096\" eslint --quiet --ext ts,tsx src",
"lint:fix": "NODE_OPTIONS=\"--max-old-space-size=4096\" prettier --write --check \"src/**/*.{js,ts,tsx}\" && eslint --ext ts,tsx --fix src",
"prerelease": "gitpkg publish",
"test": "jest"
"test": "vitest run",
"test:watch": "vitest"
},
"engines": {
"node": ">=16.0.0"
Expand All @@ -53,20 +54,16 @@
"devDependencies": {
"@gadgetinc/eslint-config": "^0.6.1",
"@gadgetinc/prettier-config": "^0.4.0",
"@swc/jest": "^0.2.36",
"@types/find-root": "^1.1.2",
"@types/graceful-fs": "^4.1.9",
"@types/jest": "^27.4.0",
"@types/lodash": "^4.14.194",
"@types/node": "^18.11.9",
"@types/write-file-atomic": "^4.0.3",
"@types/yargs": "^15.0.14",
"eslint": "^8.40.0",
"eslint-plugin-jest": "^27.2.1",
"gitpkg": "^1.0.0-beta.2",
"jest": "^27.4.7",
"prettier": "^2.8.8",
"typescript": "^5.1.3",
"vitest": "^0.33.0",
"zx": "^7.2.3"
},
"packageManager": "pnpm@8.12.1+sha256.28ca61ece5a496148b73fabc9afb820f9c3fec4f55f04ce45a2cea0a5219f2e1"
Expand Down
Loading

0 comments on commit 7cba5ef

Please sign in to comment.