Skip to content

Commit 5f8a1fc

Browse files
prc5claude
andcommitted
chore: bump vitest to 5.0.0
Vitest, @vitest/ui and @vitest/coverage-v8 move to 5.0.0 in the root and the mobile app. vitest-native already supports 5, so it stays at 0.9. The dead vitest.workspace.ts (dropped by vitest 4) becomes a root vitest.config.ts with a projects list, excluding the backend vite configs that would otherwise duplicate the vitest ones. .vitest/ is ignored. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
1 parent b909423 commit 5f8a1fc

7 files changed

Lines changed: 233 additions & 187 deletions

File tree

‎.gitignore‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,6 @@ test-output
5757
apps/*/src/db/postgres/generated/
5858

5959
# Workflow run artifacts (generated files)
60-
workflow-runs/
60+
workflow-runs/
61+
# vitest 5 default artifact directory (attachments, blob/json/junit output)
62+
.vitest/

‎apps/mobile/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
"@types/react": "19.2.14",
8585
"react-test-renderer": "19.2.3",
8686
"vite": "8.0.10",
87-
"vitest": "^4.1.5",
87+
"vitest": "^5.0.0",
8888
"vitest-native": "^0.9.0"
8989
},
9090
"nx": {

‎package.json‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,14 @@
5151
"@testing-library/user-event": "^14.6.1",
5252
"@types/node": "^25.6.0",
5353
"@typescript/native": "npm:typescript@^7.0.2",
54-
"@vitest/coverage-v8": "4.1.5",
55-
"@vitest/ui": "4.1.5",
54+
"@vitest/coverage-v8": "5.0.0",
55+
"@vitest/ui": "5.0.0",
5656
"nx": "23.1.2",
5757
"oxfmt": "^0.46.0",
5858
"oxlint": "^1.61.0",
5959
"typescript": "npm:@typescript/typescript6@^6.0.2",
6060
"vite": "8.0.10",
61-
"vitest": "^4.1.5"
61+
"vitest": "^5.0.0"
6262
},
6363
"workspaces": [
6464
"apps/*",

‎pnpm-lock.yaml‎

Lines changed: 204 additions & 181 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎pnpm-workspace.yaml‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,12 @@ allowBuilds:
3939
nx: false
4040
prisma: false
4141
unrs-resolver: false
42+
43+
minimumReleaseAgeExclude:
44+
- "@vitest/coverage-v8@5.0.0"
45+
- "@vitest/mocker@5.0.0"
46+
- "@vitest/pretty-format@5.0.0"
47+
- "@vitest/spy@5.0.0"
48+
- "@vitest/ui@5.0.0"
49+
- "@vitest/utils@5.0.0"
50+
- vitest@5.0.0

‎vitest.config.ts‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { defineConfig } from "vitest/config";
2+
3+
export default defineConfig({
4+
test: {
5+
projects: [
6+
"**/vite.config.{mjs,js,ts,mts}",
7+
"**/vitest.config.{mjs,js,ts,mts}",
8+
"!apps/backend/vite.config.ts",
9+
"!apps/backend-e2e/vite.config.ts",
10+
"!vitest.config.ts",
11+
],
12+
},
13+
});

‎vitest.workspace.ts‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)