chore: add vitest project config and yarn constraints

This commit is contained in:
Christian Andolf
2025-06-30 11:29:09 +02:00
parent 4e1cb01b84
commit 733281240f
14 changed files with 45 additions and 590 deletions

View File

@@ -0,0 +1,25 @@
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"],
},
})