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

Function waitForHit

valdi/vscode_debugger/src/test/breakpoints/breakpointsTest.ts:827–838  ·  view source on GitHub ↗
(p: TestP)

Source from the content-addressed store, hash-verified

825 };
826
827 const waitForHit = async (p: TestP) => {
828 const { threadId: pageThreadId } = await p.dap.once('stopped');
829 const { id: pageFrameId } = (
830 await p.dap.stackTrace({
831 threadId: pageThreadId!,
832 })
833 ).stackFrames[0];
834 await p.logger.logEvaluateResult(
835 await p.dap.evaluate({ expression: 'i', frameId: pageFrameId }),
836 );
837 return p.dap.continue({ threadId: pageThreadId! });
838 };
839
840 itIntegrates('works for valid', async ({ r }) => {
841 await doTest(r, async (p, source) => {

Callers 1

breakpointsTest.tsFile · 0.85

Calls 5

logEvaluateResultMethod · 0.80
onceMethod · 0.65
stackTraceMethod · 0.65
evaluateMethod · 0.65
continueMethod · 0.65

Tested by

no test coverage detected