26 lines
569 B
TypeScript
26 lines
569 B
TypeScript
import { defineConfig } from "vitest/config";
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
environment: "jsdom", // to run in browser-like environment
|
|
env: {
|
|
TZ: "Etc/UTC",
|
|
IS_TEST: "true",
|
|
},
|
|
setupFiles: ["./test/setup.ts"],
|
|
coverage: {
|
|
include: [
|
|
"src/data/**/*",
|
|
"src/common/**/*",
|
|
"src/external_app/**/*",
|
|
"src/hassio/**/*",
|
|
"src/panels/**/*",
|
|
"src/util/**/*",
|
|
],
|
|
reporter: ["text", "html"],
|
|
provider: "v8",
|
|
reportsDirectory: "test/coverage",
|
|
},
|
|
},
|
|
});
|