Skip to content

Build your personal knowledge base with Trilium Notes

feat(ci/client): HTML output

Elian Doran9b4f8c50033c
diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml
index f27a16923b..5a281f5bf2 100644
--- a/.github/workflows/dev.yml
+++ b/.github/workflows/dev.yml
@@ -40,6 +40,14 @@ jobs:
- name: Run the client-side tests
run: pnpm run --filter=client test
+ - name: Upload client test report
+ uses: actions/upload-artifact@v4
+ if: always()
+ with:
+ name: client-test-report
+ path: apps/client/test-output/vitest/html/
+ retention-days: 30
+
- name: Run the server-side tests
run: pnpm run --filter=server test
diff --git a/apps/client/vite.config.mts b/apps/client/vite.config.mts
index 716ec8b912..29e4ee2080 100644
--- a/apps/client/vite.config.mts
+++ b/apps/client/vite.config.mts
@@ -120,7 +120,11 @@ export default defineConfig(() => ({
environment: "happy-dom",
setupFiles: [
"./src/test/setup.ts"
- ]
+ ],
+ reporters: [
+ "verbose",
+ ["html", { outputFile: "./test-output/vitest/html/index.html" }]
+ ],
},
commonjsOptions: {
transformMixedEsModules: true,