2026-05-16 18:21:37 +08:00
|
|
|
import { defineConfig } from "vitest/config";
|
|
|
|
|
import react from "@vitejs/plugin-react";
|
|
|
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
|
plugins: [react()],
|
|
|
|
|
test: {
|
2026-05-16 21:12:48 +08:00
|
|
|
environment: "jsdom",
|
|
|
|
|
environmentOptions: {
|
|
|
|
|
jsdom: {
|
|
|
|
|
url: "http://localhost/",
|
|
|
|
|
},
|
|
|
|
|
},
|
2026-05-16 18:21:37 +08:00
|
|
|
setupFiles: "./src/test/setup.ts",
|
|
|
|
|
css: false,
|
|
|
|
|
},
|
|
|
|
|
});
|