mapcomplete/vitest.config.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
451 B
TypeScript
Raw Normal View History

2023-02-03 04:48:32 +01:00
import { defineConfig } from "vitest/config"
2023-02-10 14:28:00 +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-10 14:28:00 +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"],
include: ["./test/*.spec.ts","./test/**/*.spec.ts", "./*.doctest.ts", "./**/*.doctest.ts"],
2023-02-03 04:48:32 +01:00
},
})