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

Function createOutputDir

lib/workers.js:39–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39const createOutputDir = async configPath => {
40 const config = await mainConfig.load(configPath || '.')
41 const testRoot = getTestRoot(configPath)
42 const outputDir = path.isAbsolute(config.output) ? config.output : path.join(testRoot, config.output)
43
44 if (!fileExists(outputDir)) {
45 output.print(`creating output directory: ${outputDir}`)
46 mkdirp.sync(outputDir)
47 }
48}
49
50const populateGroups = numberOfWorkers => {
51 const groups = []

Callers 1

constructorMethod · 0.70

Calls 3

getTestRootFunction · 0.90
fileExistsFunction · 0.90
loadMethod · 0.45

Tested by

no test coverage detected