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

Function createOutputDir

lib/command/utils.js:99–108  ·  view source on GitHub ↗
(config, testRoot)

Source from the content-addressed store, hash-verified

97}
98
99export const createOutputDir = (config, testRoot) => {
100 let outputDir
101 if (path.isAbsolute(config.output)) outputDir = config.output
102 else outputDir = path.join(testRoot, config.output)
103
104 if (!fileExists(outputDir)) {
105 output.print(`creating output directory: ${outputDir}`)
106 mkdirp.sync(outputDir)
107 }
108}
109
110export async function autoExit() {
111 const timeout = parseInt(process.env.CODECEPT_AUTO_EXIT_TIMEOUT, 10)

Callers 2

run.jsFile · 0.90
run-rerun.jsFile · 0.90

Calls 1

fileExistsFunction · 0.90

Tested by

no test coverage detected