MapComplete/vitest.config.ts
2023-02-08 02:47:32 +01:00

13 lines
380 B
TypeScript

import { defineConfig } from "vitest/config"
import { svelte } from '@sveltejs/vite-plugin-svelte'
import autoPreprocess from "svelte-preprocess";
export default defineConfig({
plugins: [
svelte({ hot: !process.env.VITEST,
preprocess: [autoPreprocess()] }),
],
test: {
globals: true,
setupFiles: ["./test/testhooks.ts"],
},
})