Skip to content

Build your personal knowledge base with Trilium Notes

fix(build): write Vitest HTML reports to test-output again

Elian Dorand61866a60065
diff --git a/apps/client/vite.config.mts b/apps/client/vite.config.mts
index 6a0c5ddf1f..31b578bafe 100644
--- a/apps/client/vite.config.mts
+++ b/apps/client/vite.config.mts
@@ -168,7 +168,7 @@ export default defineConfig(() => ({
},
reporters: [
"verbose",
- ["html", { outputFile: "./test-output/vitest/html/index.html" }],
+ ["html", { outputDir: "./test-output/vitest/html" }],
["junit", { outputFile: "./test-output/vitest/junit.xml", addFileAttribute: true }]
],
coverage: {
diff --git a/apps/server/vite.config.mts b/apps/server/vite.config.mts
index f4eae17638..e9d6987453 100644
--- a/apps/server/vite.config.mts
+++ b/apps/server/vite.config.mts
@@ -52,7 +52,7 @@ export default defineConfig(() => ({
disableConsoleIntercept: true,
reporters: [
"verbose",
- ["html", { outputFile: "./test-output/vitest/html/index.html" }],
+ ["html", { outputDir: "./test-output/vitest/html" }],
["junit", { outputFile: "./test-output/vitest/junit.xml", addFileAttribute: true }]
],
coverage: {