From 1be830dab124e4c9a37831e806ffc8bd6ffe70ab Mon Sep 17 00:00:00 2001 From: Danijel Martinek Date: Mon, 4 May 2026 20:26:05 +0200 Subject: [PATCH] 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) --- packages/ui/package.json | 9 +++++---- pnpm-lock.yaml | 3 +++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/packages/ui/package.json b/packages/ui/package.json index f7e9ec7..cd80b88 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -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" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 91b01bf..5249f5b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -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: