smartcrop26/vitest.config.ts
DJP 3b84f974d8 Initial commit: SmartCrop2026 — AI-powered image cropping tool
- React + Vite + TypeScript + Tailwind + shadcn/ui
- AI crop engine (Google Gemini 2.5 Flash) + local edge-detection engine
- Pixel size outputs with configurable dimensions per ratio
- Import/export config (backward compatible with old Python SmartCrop configs)
- Crop editor with fixed-frame zoom/pan
- ZIP export with multi-size scaling
- Montserrat font, #FFC407 gold theme

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-06 15:15:53 -05:00

16 lines
395 B
TypeScript

import { defineConfig } from "vitest/config";
import react from "@vitejs/plugin-react-swc";
import path from "path";
export default defineConfig({
plugins: [react()],
test: {
environment: "jsdom",
globals: true,
setupFiles: ["./src/test/setup.ts"],
include: ["src/**/*.{test,spec}.{ts,tsx}"],
},
resolve: {
alias: { "@": path.resolve(__dirname, "./src") },
},
});