MCPcopy
hub / github.com/TypeStrong/ts-node / macro

Function macro

src/test/testlib.ts:283–287  ·  view source on GitHub ↗
(testInterface: ExecutionContext<Context>, ...args: Args)

Source from the content-addressed store, hash-verified

281 | ((t: ExecutionContext<Context>) => Promise<void>)
282 ) {
283 function macro(testInterface: ExecutionContext<Context>, ...args: Args) {
284 const ret = cb(...args);
285 const macroFunction = Array.isArray(ret) ? ret[1] : ret;
286 return macroFunction(testInterface);
287 }
288 macro.title = function (givenTitle: string | undefined, ...args: Args) {
289 const ret = cb(...args);
290 return Array.isArray(ret)

Callers 1

declareTestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…