MapComplete/vitest.config.ts
Pieter Vander Vennet 0b8136a5c4 Enable the doctests
2023-02-10 14:28:00 +01:00

11 lines
419 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"],
include: ["./test", "./*.doctest.ts", "./**/*.doctest.ts"],
},
})