MCPcopy
hub / github.com/garrytan/gstack / sanitizeTestName

Function sanitizeTestName

test/helpers/session-runner.ts:20–22  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

18
19/** Sanitize test name for use as filename: strip leading slashes, replace / with - */
20export function sanitizeTestName(name: string): string {
21 return name.replace(/^\/+/, '').replace(/\//g, '-');
22}
23
24/** Atomic write: write to .tmp then rename. Non-fatal on error. */
25function atomicWriteSync(filePath: string, data: string): void {

Callers 2

runSkillTestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected