MCPcopy Create free account
hub / github.com/Snapchat/Valdi / waitForPause

Function waitForPause

valdi/vscode_debugger/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 5

logStackTraceMethod · 0.80
logMethod · 0.65
onceMethod · 0.65
continueMethod · 0.65
cbFunction · 0.50

Tested by

no test coverage detected