Writing Unit Tests

Use when writing, extending, or debugging Vitest unit tests anywhere in the Trilium monorepo — Preact components, jQuery widgets, client services, or the server/trilium-core backend. Covers how to render components (zero new deps), the easy-froca/becca fixtures, supertest API patterns, the honest coverage config, running a single test, and the known gotchas.

triliumnext 6719165 4 files · 40.5 KB Updated

File contents

triliumnext/trilium/tree/main/.claude/skills/writing-unit-tests commit 67191653c5

Frequently asked questions

npx skillmds@latest add triliumnext/writing-unit-tests