MapComplete/vitest.config.ts

14 lines
380 B
TypeScript
Raw Normal View History

2023-02-03 04:48:32 +01:00
import { defineConfig } from "vitest/config"
2023-02-08 02:47:32 +01:00
import { svelte } from '@sveltejs/vite-plugin-svelte'
import autoPreprocess from "svelte-preprocess";
2023-02-03 04:48:32 +01:00
export default defineConfig({
2023-02-08 02:47:32 +01:00
plugins: [
svelte({ hot: !process.env.VITEST,
preprocess: [autoPreprocess()] }),
],
2023-02-03 04:48:32 +01:00
test: {
globals: true,
setupFiles: ["./test/testhooks.ts"],
},
})