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
test(server): tweak some tests that fail in the CI
Elian Doran35fa5e07d74a
diff --git a/apps/server/spec/etapi/import-zip.spec.ts b/apps/server/spec/etapi/import-zip.spec.tsindex 3215c90ee6..c42623b765 100644--- a/apps/server/spec/etapi/import-zip.spec.ts+++ b/apps/server/spec/etapi/import-zip.spec.ts@@ -30,5 +30,5 @@ describe("etapi/import", () => {.expect(201);expect(response.body.note.title).toStrictEqual("Journal");expect(response.body.branch.parentNoteId).toStrictEqual("root");- }, 10_000);+ });});diff --git a/apps/server/src/services/search/services/search_profiling.spec.ts b/apps/server/src/services/search/services/search_profiling.spec.tsindex d043281acb..4cd2010384 100644--- a/apps/server/src/services/search/services/search_profiling.spec.ts+++ b/apps/server/src/services/search/services/search_profiling.spec.ts@@ -179,7 +179,12 @@ function buildDataset(noteCount: number, opts: {// ── profiling tests ──────────────────────────────────────────────────-describe("Search Profiling", () => {+// These are diagnostic benchmarks (they just log timings), not correctness+// tests. They build datasets up to 20k notes and are CPU-bound, so under the+// parallel `forks` pool they contend for cores and blow past the test timeout.+// Gate them behind an env var so they never flake CI; run on demand with+// `RUN_SEARCH_PROFILING=1`.+describe.runIf(process.env.RUN_SEARCH_PROFILING)("Search Profiling", () => {afterEach(() => {becca.reset();