import { resolve } from "path"; import react from "@vitejs/plugin-react"; import { defineConfig } from "vitest/config"; // https://vitejs.dev/config/ export default defineConfig({ plugins: [react()], resolve: { alias: [ { find: "@", replacement: resolve(__dirname, "src") }, { find: "~", replacement: resolve(__dirname) }, ], }, test: { environment: "jsdom", globals: true, setupFiles: "src/test.config.ts", }, });