Skip to content

A full-featured CRM built with React, shadcn/ui, and Supabase.

use headless chromium on CI

ThieryMichel22724907e7e0
diff --git a/vitest.config.ts b/vitest.config.ts
index 32195ebc..ce058e1c 100644
--- a/vitest.config.ts
+++ b/vitest.config.ts
@@ -10,7 +10,14 @@ export default defineConfig({
browser: {
provider: playwright(),
enabled: true,
- instances: [{ browser: "chromium" }],
+ instances: [
+ {
+ browser: "chromium",
+ ...(process.env.CI && {
+ launch: { channel: "chromium-headless-shell" },
+ }),
+ },
+ ],
commands: {
// Uses Chrome DevTools Protocol to override the timezone at runtime,
// since process.env.TZ has no effect in a real browser environment.