28 lines
579 B
TypeScript
28 lines
579 B
TypeScript
import { defineConfig } from "vitest/config";
|
|
|
|
const exclude = ["docker_node_modules", "node_modules", "dist", "lib", "webhint"];
|
|
|
|
import AutoImport from "unplugin-auto-import/vite";
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
testTimeout: 10000,
|
|
setupFiles: ["src/back/test-teardown.ts"],
|
|
exclude,
|
|
globals: true,
|
|
coverage: {
|
|
exclude,
|
|
enabled: true,
|
|
all: true,
|
|
include: ["src/**", "test?(-*).?(c|m)[jt]s?(x)"],
|
|
},
|
|
},
|
|
plugins: [
|
|
AutoImport({
|
|
include: [/\.tsx?$/],
|
|
imports: [{ tempstream: [["TempstreamJSX", "React"]] }],
|
|
dts: false,
|
|
}),
|
|
],
|
|
});
|