chore: Test setup in partner-web * Add playwright * Add vitest setup Approved-by: Linus Flood
27 lines
556 B
TypeScript
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)"],
|
|
},
|
|
})
|