MCPcopy Create free account
hub / github.com/denoland/std / getTestName

Function getTestName

testing/snapshot.ts:651–661  ·  view source on GitHub ↗
(
    context: Deno.TestContext,
    options?: SnapshotOptions,
  )

Source from the content-addressed store, hash-verified

649 }
650
651 function getTestName(
652 context: Deno.TestContext,
653 options?: SnapshotOptions,
654 ): string {
655 if (options && options.name) {
656 return options.name;
657 } else if (context.parent) {
658 return `${getTestName(context.parent)} > ${context.name}`;
659 }
660 return context.name;
661 }
662}
663
664/**

Callers 1

assertSnapshotFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected