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

Function getTraceDir

test/unit/mcpServer_test.js:35–40  ·  view source on GitHub ↗
(testTitle, testFile)

Source from the content-addressed store, hash-verified

33}
34
35function getTraceDir(testTitle, testFile) {
36 const hash = createHash('sha256').update(testFile + testTitle).digest('hex').slice(0, 8)
37 const cleanTitle = clearString(testTitle).slice(0, 200)
38 const outputDir = global.output_dir || resolve(process.cwd(), 'output')
39 return resolve(outputDir, `trace_${cleanTitle}_${hash}`)
40}
41
42describe('MCP Server Utilities', () => {
43 describe('extractFilesFromListJson', () => {

Callers 1

mcpServer_test.jsFile · 0.85

Calls 2

resolveFunction · 0.85
clearStringFunction · 0.70

Tested by

no test coverage detected