Skip to content

Build your personal knowledge base with Trilium Notes

chore(test): html coverage

Elian Doran89eab387ba5f
diff --git a/src/public/app/vitest.config.ts b/src/public/app/vitest.config.ts
index 3ffc3a4857..5c9eb94f65 100644
--- a/src/public/app/vitest.config.ts
+++ b/src/public/app/vitest.config.ts
@@ -2,6 +2,9 @@ import { defineConfig } from "vitest/config";
export default defineConfig({
test: {
- environment: "happy-dom"
+ environment: "happy-dom",
+ coverage: {
+ reporter: [ "text", "html" ]
+ }
}
});
diff --git a/vitest.config.ts b/vitest.config.ts
index 8e101f964b..8f3cd3d095 100644
--- a/vitest.config.ts
+++ b/vitest.config.ts
@@ -19,6 +19,7 @@ export default defineConfig({
test: {
exclude: [...configDefaults.exclude, ...customExcludes],
coverage: {
+ reporter: [ "text", "html" ],
exclude: [...coverageConfigDefaults.exclude, ...customExcludes]
}
}