Skip to content

Commit

Permalink
Switch to Vitest
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseLion committed Jun 23, 2024
1 parent 1f624f3 commit 9bd1715
Show file tree
Hide file tree
Showing 14 changed files with 1,068 additions and 968 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- run: yarn add --dev rxjs@~${{ matrix.rxjs }}
- run: yarn compile
- run: yarn lint
- run: yarn test --forbid-only
- run: yarn test

check:
runs-on: ubuntu-latest
Expand Down
13 changes: 0 additions & 13 deletions .mocharc.json

This file was deleted.

9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@
},
"scripts": {
"build": "vite build",
"check": "yarn compile && yarn lint && yarn test --forbid-only",
"check": "yarn compile && yarn lint && yarn test --run",
"compile": "tsc",
"lint": "eslint .",
"release": "semantic-release",
"test": "NODE_ENV=test mocha"
"test": "NODE_ENV=test vitest"
},
"packageManager": "[email protected]",
"dependencies": {
Expand All @@ -62,7 +62,6 @@
"@stylistic/eslint-plugin": "^2.2.2",
"@types/eslint__eslintrc": "^2.1.1",
"@types/eslint__js": "^8.42.3",
"@types/mocha": "^10.0.7",
"@types/node": "^20.14.8",
"@types/sinon": "^17.0.3",
"axios": "^1.7.2",
Expand All @@ -75,7 +74,6 @@
"eslint-plugin-jsdoc": "^48.2.15",
"eslint-plugin-sonarjs": "^1.0.3",
"form-data": "^4.0.0",
"mocha": "^10.4.0",
"msw": "^2.3.1",
"rxjs": "^7.8.1",
"semantic-release": "^24.0.0",
Expand All @@ -86,7 +84,8 @@
"typescript": "^5.5.2",
"typescript-eslint": "^7.13.1",
"vite": "^5.3.1",
"vite-plugin-dts": "^3.9.1"
"vite-plugin-dts": "^3.9.1",
"vitest": "^1.6.0"
},
"peerDependencies": {
"axios": ">=1.0.0",
Expand Down
18 changes: 0 additions & 18 deletions test/hooks.ts

This file was deleted.

Loading

0 comments on commit 9bd1715

Please sign in to comment.