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
This commit is contained in:
Anton Gunnarsson
2025-07-01 08:27:59 +00:00
parent 9426f4b1ac
commit a3702d0ecc
8 changed files with 216 additions and 6 deletions

View File

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