From 6610f2ea7b5be841f4d0e47d61fa07a23b923763 Mon Sep 17 00:00:00 2001 From: Arthur Michon Date: Mon, 25 May 2026 22:26:47 +0200 Subject: [PATCH] fix(web): vitest --passWithNoTests so empty CI doesn't fail The frontend has no test files yet; `npm test` defaulted to `vitest run` which exits 1 when no test files are found. Adding `--passWithNoTests` lets CI run cleanly until the first vitest suite lands. --- web/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/package.json b/web/package.json index 1821ab6..0ee67a2 100644 --- a/web/package.json +++ b/web/package.json @@ -10,7 +10,7 @@ "build": "tsc -b && vite build", "preview": "vite preview", "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0", - "test": "vitest run", + "test": "vitest run --passWithNoTests", "gen:api": "openapi --input http://localhost:8000/api/v1/openapi.json --output src/lib/api --client fetch --useOptions --useUnionTypes" }, "dependencies": {