Skip to content

Commit a2024a3

Browse files
authored
chore: use vitest 😼 (#580)
1 parent bc6392e commit a2024a3

File tree

15 files changed

+926
-2355
lines changed

15 files changed

+926
-2355
lines changed

‎.github/workflows/tests.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
tests:
99
runs-on: buildjet-4vcpu-ubuntu-2204
1010
container:
11-
image: node:20
11+
image: node:23
1212
credentials:
1313
username: ${{ vars.DOCKER_HUB_USERNAME || '' }}
1414
password: ${{ secrets.DOCKER_HUB_API_KEY || '' }}

‎jest.config.ts‎

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

‎jest.setup.ts‎

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

‎package.json‎

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@
2323
},
2424
"scripts": {
2525
"build": "tsup src/index.ts --format esm,cjs --dts",
26-
"test": "jest",
27-
"test:watch": "jest --watch",
26+
"format": "biome format --write .",
2827
"format:apply": "biome check --write .",
2928
"format:check": "biome format .",
30-
"format": "biome format --write .",
3129
"lint": "biome check .",
32-
"prepublishOnly": "pnpm run build"
30+
"prepublishOnly": "pnpm run build",
31+
"test": "vitest run",
32+
"test:watch": "vitest"
3333
},
3434
"repository": {
3535
"type": "git",
@@ -51,15 +51,12 @@
5151
},
5252
"devDependencies": {
5353
"@biomejs/biome": "1.9.4",
54-
"@types/jest": "29.5.14",
55-
"@types/node": "18.19.86",
54+
"@types/node": "20.19.11",
5655
"@types/react": "19.1.2",
57-
"jest": "29.7.0",
58-
"jest-fetch-mock": "3.0.3",
59-
"ts-jest": "29.3.4",
60-
"ts-node": "10.9.2",
6156
"tsup": "7.2.0",
62-
"typescript": "5.8.3"
57+
"typescript": "5.8.3",
58+
"vitest": "3.2.4",
59+
"vitest-fetch-mock": "0.4.5"
6360
},
6461
"packageManager": "[email protected]"
6562
}

0 commit comments

Comments
 (0)