test: finish sidebar lazy imports before teardown (#23694)

This commit is contained in:
Neil
2026-09-28 14:16:40 -07:00
committed by GitHub
parent 0ceb3fa2af
commit 1a0ff42eb1
@@ -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()