maCopy/vitest.browser.config.ts
ilia e9461ed4f3
All checks were successful
CI / skip-ci-check (pull_request) Successful in 4s
CI / secret-scan (pull_request) Successful in 3s
CI / node-ci (pull_request) Successful in 17s
Add copy-only, color swatches, DB speed pragmas, and living docs
- Copy only (right-click -> Copy): write to clipboard without
  auto-pasting or hiding the window
- Color swatches: hex/rgb/hsl entries show a preview chip
- SQLite WAL + synchronous=NORMAL so the UI can read while the
  clipboard poller writes
- Memoize list rows (React.memo) so selection/focus changes don't
  re-render every row's preview
- Add docs/GUIDE.md (living install + usage doc), docs/SHARING.md,
  docs/TESTING.md, docs/LAUNCH-AT-LOGIN.md, docs/PRODUCT.md,
  CHANGELOG.md, ROADMAP.md
- Add homelab Gitea Actions CI (.gitea/workflows/ci.yml) + gitleaks
  allowlist
- Bump version to 0.2.0
2026-07-14 21:58:31 -04:00

32 lines
826 B
TypeScript

import { defineConfig } from "vitest/config";
import react from "@vitejs/plugin-react";
import { playwright } from "@vitest/browser-playwright";
/**
* Headed browser runs — so you can watch the UI under test.
* Usage: npm run test:headed
*/
export default defineConfig({
plugins: [react()],
test: {
globals: true,
setupFiles: ["./src/test/setup.ts"],
include: ["src/**/*.test.{ts,tsx}"],
browser: {
enabled: true,
provider: playwright({
launchOptions: {
headless: false,
slowMo: 250,
},
}),
instances: [{ browser: "chromium" }],
headless: false,
viewport: { width: 900, height: 700 },
},
// Keep Chrome open longer between files so you can watch
fileParallelism: false,
sequence: { concurrent: false },
},
});