MCPcopy
hub / github.com/vitest-dev/vitest / testNameToKey

Function testNameToKey

packages/snapshot/src/port/utils.ts:18–20  ·  view source on GitHub ↗
(testName: string, count: number)

Source from the content-addressed store, hash-verified

16// TODO: rewrite and clean up
17
18export function testNameToKey(testName: string, count: number): string {
19 return `${testName} ${count}`
20}
21
22export function keyToTestName(key: string): string {
23 if (!/ \d+$/.test(key)) {

Callers 2

_resolveKeyMethod · 0.90
probeExpectedSnapshotMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected