chore: ignore e2e tests when running yarn test * chore: ignore e2e tests when running yarn test
28 lines
616 B
TypeScript
28 lines
616 B
TypeScript
import react from "@vitejs/plugin-react"
|
|
import tsconfigPaths from "vite-tsconfig-paths"
|
|
import { defineConfig } from "vitest/config"
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
tsconfigPaths() as any,
|
|
react({
|
|
babel: {
|
|
plugins: [
|
|
[
|
|
"formatjs",
|
|
{
|
|
idInterpolationPattern: "[sha512:contenthash:base64:6]",
|
|
},
|
|
],
|
|
],
|
|
},
|
|
}),
|
|
],
|
|
test: {
|
|
environment: "jsdom",
|
|
setupFiles: ["./vitest-setup.ts"],
|
|
exclude: ["./tests/e2e/*"],
|
|
},
|
|
})
|