Skip to content

Build your personal knowledge base with Trilium Notes

test(collections): restore the tab manager after the open-all spec

Elian Doran1694304a149f
diff --git a/apps/client/src/widgets/note_bars/CollectionProperties.spec.tsx b/apps/client/src/widgets/note_bars/CollectionProperties.spec.tsx
index fea452cee6..dec44794cf 100644
--- a/apps/client/src/widgets/note_bars/CollectionProperties.spec.tsx
+++ b/apps/client/src/widgets/note_bars/CollectionProperties.spec.tsx
@@ -72,6 +72,9 @@ describe("CollectionProperties", () => {
});
});
+const originalTabManager = appContext.tabManager;
+
afterEach(() => {
+ appContext.tabManager = originalTabManager;
vi.restoreAllMocks();
});