mapcomplete/vitest.config.ts

14 lines
499 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,
2024-01-07 17:59:10 +01:00
maxThreads: 16,
minThreads: 1,
2023-02-03 04:48:32 +01:00
setupFiles: ["./test/testhooks.ts"],
2023-06-01 14:40:54 +02:00
include: ["./test/*.spec.ts", "./test/**/*.spec.ts", "./*.doctest.ts", "./**/*.doctest.ts"],
2023-02-03 04:48:32 +01:00
},
})