Files
web/apps/partner-sas/vitest.config.ts
Anton Gunnarsson a3702d0ecc Merged in chore/partner-sas-test-setup (pull request #2484)
chore: Test setup in partner-web

* Add playwright

* Add vitest setup


Approved-by: Linus Flood
2025-07-01 08:27:59 +00:00

27 lines
556 B
TypeScript

import react from "@vitejs/plugin-react"
import tsconfigPaths from "vite-tsconfig-paths"
import { defineConfig } from "vitest/config"
export default defineConfig({
plugins: [
tsconfigPaths(),
react({
babel: {
plugins: [
[
"formatjs",
{
idInterpolationPattern: "[sha512:contenthash:base64:6]",
},
],
],
},
}),
],
test: {
environment: "jsdom",
setupFiles: ["./vitest-setup.ts"],
include: ["**/*.{test}.?(c|m)[jt]s?(x)"],
},
})