- 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
32 lines
826 B
TypeScript
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 },
|
|
},
|
|
});
|