33 lines
822 B
TypeScript
33 lines
822 B
TypeScript
import { defineConfig } from "vitest/config";
|
|
import react from "@vitejs/plugin-react";
|
|
import path from "path";
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
react({
|
|
babel: {
|
|
plugins: [["babel-plugin-react-compiler", {}]],
|
|
},
|
|
}),
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
shared: path.resolve(__dirname, "src/shared"),
|
|
entities: path.resolve(__dirname, "src/entities"),
|
|
features: path.resolve(__dirname, "src/features"),
|
|
widgets: path.resolve(__dirname, "src/widgets"),
|
|
app: path.resolve(__dirname, "src/app"),
|
|
},
|
|
},
|
|
test: {
|
|
globals: true,
|
|
environment: "jsdom",
|
|
setupFiles: ["./src/shared/config/test/setup.ts"],
|
|
coverage: {
|
|
provider: "v8",
|
|
reporter: ["text", "json", "html"],
|
|
exclude: ["node_modules/", "src/test/"],
|
|
},
|
|
},
|
|
});
|