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

Function parseArgs

src/test/testlib.ts:165–175  ·  view source on GitHub ↗
(args: any[])

Source from the content-addressed store, hash-verified

163 }
164 }
165 function parseArgs(args: any[]) {
166 const title =
167 typeof args[0] === 'string' ? (args.shift() as string) : undefined;
168 const macros =
169 typeof args[0] === 'function'
170 ? [args.shift() as AvaMacro]
171 : Array.isArray(args[0])
172 ? (args.shift() as AvaMacro[])
173 : [];
174 return { title, macros, args };
175 }
176 function assertOrderingForDeclaringTest() {
177 suiteOrTestDeclared = true;
178 }

Callers 2

testFunction · 0.85
createTestInterfaceFunction · 0.85

Calls

no outgoing calls

Tested by 1

testFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…