Skip to content

Commit 5ef1deb

Browse files
authored
chore: use vitest (#23)
* chore: use vitest * coverage action skip steps * remove coverage action * require full test coverage * update deps
1 parent b93ca4e commit 5ef1deb

File tree

9 files changed

+770
-2135
lines changed

9 files changed

+770
-2135
lines changed

.github/workflows/tests.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,6 @@ jobs:
3838
- name: Unit test
3939
run: pnpm run test
4040

41-
- uses: artiomtr/[email protected]
42-
if: "github.event_name == 'pull_request'"
43-
with:
44-
github-token: ${{ secrets.GITHUB_TOKEN }}
45-
skip-step: all
46-
4741
typecheck:
4842
name: Typecheck
4943
runs-on: ubuntu-latest

jest.config.ts

Lines changed: 0 additions & 22 deletions
This file was deleted.

package.json

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,28 +37,25 @@
3737
"lint": "eslint --max-warnings 0 .",
3838
"lint:format": "prettier --check .",
3939
"start": "pnpm run build -- --watch",
40-
"test": "jest --forceExit --detectOpenHandles --testLocationInResults --json --outputFile=report.json",
41-
"test:watch": "pnpm run test -- --watch",
40+
"test": "vitest run --coverage",
41+
"test:watch": "vitest",
4242
"typecheck": "tsc --noEmit",
4343
"release": "semantic-release"
4444
},
4545
"devDependencies": {
4646
"@geprog/eslint-config": "1.0.5",
4747
"@geprog/semantic-release-config": "1.0.0",
48-
"@jest/types": "27.5.1",
49-
"@types/jest": "27.4.1",
50-
"@types/node": "17.0.23",
5148
"@types/supertest": "2.0.12",
49+
"c8": "7.11.3",
5250
"eslint": "8.11.0",
53-
"jest": "27.5.1",
51+
"jsdom": "20.0.0",
5452
"prettier": "2.6.1",
5553
"semantic-release": "19.0.2",
5654
"supertest": "6.2.2",
57-
"ts-jest": "27.1.4",
58-
"ts-node": "10.7.0",
5955
"tsup": "5.12.1",
6056
"typescript": "4.6.3",
61-
"vite": "2.8.6"
57+
"vite": "2.9.8",
58+
"vitest": "0.16.0"
6259
},
6360
"peerDependencies": {
6461
"vite": "^2.0.0"

0 commit comments

Comments
 (0)