- Add scripts/setup-db.ts to programmatically create missing PocketBase collections (period_logs, dailyLogs) with proper relation fields - Fix dark mode visibility across settings, login, calendar, and dashboard components by using semantic CSS tokens and dark: variants - Add db:setup npm script and document usage in AGENTS.md - Update vitest config to include scripts directory tests Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
20 lines
542 B
TypeScript
20 lines
542 B
TypeScript
// ABOUTME: Vitest configuration for unit and integration testing.
|
|
// ABOUTME: Configures jsdom environment for React component testing.
|
|
import path from "node:path";
|
|
import react from "@vitejs/plugin-react";
|
|
import { defineConfig } from "vitest/config";
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(__dirname, "./src"),
|
|
},
|
|
},
|
|
test: {
|
|
environment: "jsdom",
|
|
include: ["src/**/*.test.{ts,tsx}", "scripts/**/*.test.ts"],
|
|
setupFiles: ["./src/test-setup.ts"],
|
|
},
|
|
});
|