Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
chore(ai): update system prompt regarding tests
Elian Dorancb83c516328e
diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.mdindex 21a4171729..8f87f6a166 100644--- a/.github/copilot-instructions.md+++ b/.github/copilot-instructions.md@@ -340,6 +340,9 @@ Trilium provides powerful user scripting capabilities:## Testing Conventions+- **Write concise tests**: Group related assertions together in a single test case rather than creating many one-shot tests+- **Extract and test business logic**: When adding pure business logic (e.g., data transformations, migrations, validations), extract it as a separate function and always write unit tests for it+```typescript// ETAPI test patterndescribe("etapi/feature", () => {diff --git a/CLAUDE.md b/CLAUDE.mdindex d113a18da2..ab6067e058 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -119,6 +119,8 @@ Trilium supports multiple note types, each with specialized widgets:- Client tests can run in parallel- E2E tests use Playwright for both server and desktop apps- Build validation tests check artifact integrity+- **Write concise tests**: Group related assertions together in a single test case rather than creating many one-shot tests+- **Extract and test business logic**: When adding pure business logic (e.g., data transformations, migrations, validations), extract it as a separate function and always write unit tests for it### Scripting SystemTrilium provides powerful user scripting capabilities: