Skip to content

Commit

Permalink
Vitest instead of Jest
Browse files Browse the repository at this point in the history
  • Loading branch information
AhmedBaset committed Aug 5, 2024
1 parent 1cffd5d commit d80d5f1
Show file tree
Hide file tree
Showing 7 changed files with 731 additions and 1,993 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
dist
.env
.env
coverage/
6 changes: 0 additions & 6 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,6 @@ export default config(
"@typescript-eslint/no-unused-vars": "warn",
},
},
{
files: ["tests/**/*.ts"],
languageOptions: {
globals: globals.jest,
},
},
{
files: ["**/*.{tsx,jsx}"],
...rtlFriendly.configs.recommended,
Expand Down
19 changes: 0 additions & 19 deletions jest.config.js

This file was deleted.

20 changes: 7 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,9 @@
"clean": "rm -rf dist",
"format": "biome check . --write",
"lint": "eslint .",
"format:check": "biome check .",
"test": "jest",
"test:watch": "jest --watch",
"test:coverage": "jest --coverage",
"release": "semantic-release",
"add-rule": "tsx scripts/add-rule",
"update": "tsx scripts/update",
"test": "vitest --run",
"test:watch": "vitest",
"test:coverage": "vitest --coverage",
"prepublishOnly": "npm run build",
"gen-e2e": "tsx scripts/generate-e2e"
},
Expand All @@ -57,19 +53,17 @@
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.7",
"@eslint/js": "9.8.0",
"@types/jest": "^29.5.12",
"@types/node": "20",
"@types/node": "^20.14.14",
"@typescript-eslint/rule-tester": "^8.0.0",
"@typescript-eslint/utils": "^8.0.0",
"@vitest/coverage-v8": "^2.0.5",
"eslint": "^9.8.0",
"eslint-plugin-eslint-plugin": "^6.2.0",
"globals": "^15.9.0",
"jest": "^29.7.0",
"tailwindcss": "~3.3.3",
"ts-jest": "^29.2.4",
"tsup": "^8.2.4",
"typescript": "^5.5.4",
"typescript-eslint": "^8.0.0"
"typescript-eslint": "^8.0.0",
"vitest": "^2.0.5"
},
"keywords": [
"eslint",
Expand Down
Loading

0 comments on commit d80d5f1

Please sign in to comment.