MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / snapshotDirFor

Function snapshotDirFor

lib/utils/trace.js:27–30  ·  view source on GitHub ↗
(baseDir)

Source from the content-addressed store, hash-verified

25}
26
27export function snapshotDirFor(baseDir) {
28 const hash = crypto.randomBytes(4).toString('hex')
29 return path.resolve(baseDir, `snapshot_${Date.now()}_${hash}`)
30}
31
32// ---------------------------------------------------------------------------
33// Artifact link rendering (trace.md)

Callers 3

trace_test.jsFile · 0.90
captureLiveArtifactsFunction · 0.90
mcp-server.jsFile · 0.90

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected