template: new_style_vite_react_shadcn_ts_testing_2026-01-08

This commit is contained in:
Lovable
2025-01-01 00:00:00 +00:00
commit b331aa1a7d
80 changed files with 11601 additions and 0 deletions

16
vitest.config.ts Normal file
View File

@@ -0,0 +1,16 @@
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") },
},
});