MCPcopy
hub / github.com/microsoft/vscode-js-debug / waitForPause

Function waitForPause

src/test/framework/reactTest.ts:16–21  ·  view source on GitHub ↗
(p: ITestHandle, cb?: (threadId: string) => Promise<void>)

Source from the content-addressed store, hash-verified

14
15describe('react', () => {
16 async function waitForPause(p: ITestHandle, cb?: (threadId: string) => Promise<void>) {
17 const { threadId } = p.log(await p.dap.once('stopped'));
18 await p.logger.logStackTrace(threadId);
19 if (cb) await cb(threadId);
20 return p.dap.continue({ threadId });
21 }
22
23 const projectName = 'react-test';
24 let projectFolder: string;

Callers 1

reactTest.tsFile · 0.70

Calls 4

logStackTraceMethod · 0.80
continueMethod · 0.80
logMethod · 0.65
onceMethod · 0.65

Tested by

no test coverage detected