25 lines
526 B
TypeScript
25 lines
526 B
TypeScript
|
|
import { defineConfig } from "vitest/config";
|
||
|
|
import react from "@vitejs/plugin-react";
|
||
|
|
import path from "node:path";
|
||
|
|
import { fileURLToPath } from "node:url";
|
||
|
|
|
||
|
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
||
|
|
|
||
|
|
export default defineConfig({
|
||
|
|
plugins: [react()],
|
||
|
|
resolve: {
|
||
|
|
alias: {
|
||
|
|
"@": path.resolve(__dirname, "./src"),
|
||
|
|
},
|
||
|
|
},
|
||
|
|
define: {
|
||
|
|
__APP_VERSION__: JSON.stringify("0.0.0-test"),
|
||
|
|
},
|
||
|
|
test: {
|
||
|
|
environment: "jsdom",
|
||
|
|
globals: true,
|
||
|
|
setupFiles: ["./src/test/setup.ts"],
|
||
|
|
css: false,
|
||
|
|
},
|
||
|
|
});
|