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

Function assertSkipFiles

valdi/vscode_debugger/src/test/node/node-runtime.test.ts:43–50  ·  view source on GitHub ↗
(expectedStacktrace: string)

Source from the content-addressed store, hash-verified

41 }
42
43 function assertSkipFiles(expectedStacktrace: string) {
44 const stackframes = expectedStacktrace.split('\n').splice(-1, 1); // removing last empty element
45 expect(stackframes.length).to.be.greaterThan(0);
46 expect(stackframes[0]).to.not.contain('<hidden: Skipped by skipFiles>');
47 for (let n = 1; n < stackframes.length; n++) {
48 expect(stackframes[n]).to.contain('<hidden: Skipped by skipFiles>');
49 }
50 }
51
52 itIntegrates('skipFiles skip node internals', async ({ r }) => {
53 await r.initialize;

Callers

nothing calls this directly

Calls 1

splitMethod · 0.80

Tested by

no test coverage detected