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

Function extractFilesFromListJson

test/unit/mcpServer_test.js:11–18  ·  view source on GitHub ↗
(json)

Source from the content-addressed store, hash-verified

9const __dirname = dirname(__filename)
10
11function extractFilesFromListJson(json) {
12 if (!json) return []
13 if (Array.isArray(json)) return json.map(String)
14 if (Array.isArray(json.tests)) return json.tests.map(String)
15 if (Array.isArray(json.files)) return json.files.map(String)
16 if (Array.isArray(json.testFiles)) return json.testFiles.map(String)
17 return []
18}
19
20function looksLikePath(v) {
21 return typeof v === 'string' && (

Callers 1

mcpServer_test.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected