This commit is contained in:
Ilia Denisov
2026-05-07 07:18:55 +02:00
parent 7af57933eb
commit 7cc18159e9
20 changed files with 2090 additions and 12 deletions
+17
View File
@@ -0,0 +1,17 @@
import { defineConfig, mergeConfig } from "vitest/config";
import viteConfig from "./vite.config";
export default mergeConfig(
viteConfig,
defineConfig({
resolve: {
// Force the browser entry of Svelte so `mount` is available in jsdom.
conditions: ["browser"],
},
test: {
environment: "jsdom",
include: ["tests/**/*.test.ts"],
globals: true,
},
}),
);