MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / waitForReader

Function waitForReader

graph-ui/src/galaxy/GalaxyPanel.test.tsx:796–799  ·  view source on GitHub ↗
(assertion: () => void)

Source from the content-addressed store, hash-verified

794
795describe('mini galaxy follows the code reader', () => {
796 const waitForReader = (assertion: () => void) => vi.waitFor(async () => {
797 await act(async () => { await new Promise(resolve => setTimeout(resolve, 0)); });
798 assertion();
799 });
800 it('frames the active file even when no twin symbol is available', async () => {
801 await render(props({ focusFilePath: 'src/services/userService.ts' }));
802 await waitForReader(() => expect(seam().highlightedCount).toBe(1));

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected