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

Function testPrettyPrints

src/test/sources/pretty-print.test.ts:16–27  ·  view source on GitHub ↗
(p: ITestHandle, source: Dap.Source)

Source from the content-addressed store, hash-verified

14 }
15
16 const testPrettyPrints = async (p: ITestHandle, source: Dap.Source) => {
17 const res = p.dap.prettyPrintSource({ source });
18
19 const gotSource = p.dap.once('loadedSource');
20 const continued = p.dap.once('continued');
21 const stopped = await waitAndStayPaused(p);
22
23 p.log(await continued);
24 p.log(await gotSource);
25 await res;
26 stopped();
27 };
28
29 itIntegrates('base', async function({ r }) {
30 const p = await r.launchUrl('pretty/pretty.html');

Callers 1

Calls 4

waitAndStayPausedFunction · 0.85
prettyPrintSourceMethod · 0.80
onceMethod · 0.65
logMethod · 0.65

Tested by

no test coverage detected