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:
@@ -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
3
pnpm-lock.yaml
generated
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user