17 lines
382 B
TypeScript
17 lines
382 B
TypeScript
import { defineConfig } from "vitest/config";
|
|||
|
|
import react from "@vitejs/plugin-react";
|
||
|
|
import { fileURLToPath } from "node:url";
|
||
|
|
|
||
|
|
export default defineConfig({
|
||
|
|
plugins: [react()],
|
||
|
|
test: {
|
||
|
|
environment: "node",
|
||
|
|
include: ["src/**/*.test.ts", "src/**/*.test.tsx"],
|
||
|
|
},
|
||
|
|
resolve: {
|
||
|
|
alias: {
|
||
|
|
"@": fileURLToPath(new URL("./src", import.meta.url)),
|
||
|
|
},
|
||
|
|
},
|
||
|
|
});
|