From 1a0ff42eb16c17c619f256fb4f7ee43a9df68dbf Mon Sep 17 00:00:00 2001 From: Neil <4138956+nwparker@users.noreply.github.com> Date: Mon, 28 Sep 2026 14:16:40 -0700 Subject: [PATCH] test: finish sidebar lazy imports before teardown (#23694) --- .../WorktreeList.lineage-agent-expansion-coupling.test.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/renderer/src/components/sidebar/WorktreeList.lineage-agent-expansion-coupling.test.tsx b/src/renderer/src/components/sidebar/WorktreeList.lineage-agent-expansion-coupling.test.tsx index a68908e5618..f3cbe8ff0e7 100644 --- a/src/renderer/src/components/sidebar/WorktreeList.lineage-agent-expansion-coupling.test.tsx +++ b/src/renderer/src/components/sidebar/WorktreeList.lineage-agent-expansion-coupling.test.tsx @@ -463,6 +463,8 @@ describe('WorktreeCard agent-list <-> child-worktrees expansion coupling', () => for (const root of mountedRoots.splice(0)) { root.unmount() } + // Lazy markdown imports must finish before Vitest tears down the module environment. + await vi.dynamicImportSettled() }) document.body.innerHTML = '' clearWorktreeAgentExpansionStateForTests()