MCPcopy Index your code
hub / github.com/microsoft/vscode-js-debug / assertValidOutputFile

Function assertValidOutputFile

src/test/extension/profiling.test.ts:25–31  ·  view source on GitHub ↗
(file: string)

Source from the content-addressed store, hash-verified

23 let acceptQuickPick: EventEmitter<void>;
24
25 const assertValidOutputFile = async (file: string) => {
26 const contents = await fs.readFile(file, 'utf-8');
27 expect(() => JSON.parse(contents)).to.not.throw(
28 undefined,
29 'expected to be valid JSON: ' + contents,
30 );
31 };
32
33 const getFrameId = async (threadId: number, handle: ITestHandle) =>
34 (await handle.dap.stackTrace({ threadId })).stackFrames[0].id;

Callers 1

profiling.test.tsFile · 0.85

Calls 2

readFileMethod · 0.65
parseMethod · 0.65

Tested by

no test coverage detected