fix(ui): add vitest dep + --passWithNoTests so test script doesn't fail

The test script referenced vitest without declaring the devDep, and vitest
exits non-zero when no test files match. Adds the missing dep and the flag
to keep CI green for empty test suites.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-04 20:26:05 +02:00
parent da01b88017
commit 1be830dab1
2 changed files with 8 additions and 4 deletions

View File

@@ -8,18 +8,19 @@
"scripts": {
"build": "echo 'typechecked by consuming app bundler'",
"lint": "eslint .",
"test": "vitest run",
"test": "vitest run --passWithNoTests",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"clsx": "^2.1.0",
"tailwind-merge": "^3.0.0",
"react": "^19.0.0"
"react": "^19.0.0",
"tailwind-merge": "^3.0.0"
},
"devDependencies": {
"@repo/eslint-config": "workspace:*",
"@repo/typescript-config": "workspace:*",
"@types/react": "^19.0.0",
"tailwindcss": "^4.1.0"
"tailwindcss": "^4.1.0",
"vitest": "^3.1.0"
}
}

3
pnpm-lock.yaml generated
View File

@@ -338,6 +338,9 @@ importers:
tailwindcss:
specifier: ^4.1.0
version: 4.2.2
vitest:
specifier: ^3.1.0
version: 3.2.4(@types/debug@4.1.13)(@types/node@25.5.2)(happy-dom@20.8.9)(jiti@2.6.1)(lightningcss@1.32.0)(sass@1.99.0)(tsx@4.21.0)
packages: