Skip to content

Commit 1aa219c

Browse files
authored
chore: use vitest (#43)
1 parent 35ff58e commit 1aa219c

File tree

9 files changed

+573
-2050
lines changed

9 files changed

+573
-2050
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/jest-coverage-report-action@v2.0-rc.1
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 & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,26 +23,22 @@
2323
"lint": "eslint --max-warnings 0 .",
2424
"lint:format": "prettier --check .",
2525
"start": "pnpm run build -- --watch",
26-
"test": "jest --forceExit --detectOpenHandles --testLocationInResults --json --outputFile=report.json",
27-
"test:watch": "pnpm run test -- --watch",
26+
"test": "vitest run --coverage",
27+
"test:watch": "vitest",
2828
"typecheck": "tsc --noEmit",
2929
"release": "semantic-release"
3030
},
3131
"devDependencies": {
32-
"@geprog/eslint-config": "1.0.2",
32+
"@geprog/eslint-config": "1.1.0",
3333
"@geprog/semantic-release-config": "1.0.0",
34-
"@jest/types": "27.4.2",
35-
"@types/jest": "27.4.0",
36-
"@types/node": "17.0.13",
34+
"c8": "7.11.3",
3735
"eslint": "8.8.0",
38-
"jest": "27.4.7",
3936
"mongodb": "4.3.1",
4037
"prettier": "2.5.1",
4138
"semantic-release": "19.0.2",
42-
"ts-jest": "27.1.3",
43-
"ts-node": "10.4.0",
4439
"tsup": "5.11.13",
45-
"typescript": "4.5.5"
40+
"typescript": "4.5.5",
41+
"vitest": "0.16.0"
4642
},
4743
"peerDependencies": {
4844
"mongodb": "^3.6.0 || ^4.0.0"

0 commit comments

Comments
 (0)