MCPcopy
hub / github.com/codeceptjs/CodeceptJS / getTestRoot

Function getTestRoot

lib/command/utils.js:31–36  ·  view source on GitHub ↗
(currentPath)

Source from the content-addressed store, hash-verified

29}
30
31function getTestRoot(currentPath) {
32 if (!currentPath) currentPath = '.'
33 if (!path.isAbsolute(currentPath)) currentPath = path.join(process.cwd(), currentPath)
34 currentPath = fs.lstatSync(currentPath).isDirectory() || !path.extname(currentPath) ? currentPath : path.dirname(currentPath)
35 return currentPath
36}
37export { getTestRoot }
38
39function fail(msg) {

Callers 15

initializeCodeceptFunction · 0.90
createOutputDirFunction · 0.90
constructorMethod · 0.90
setTestRootMethod · 0.90
_initWorkersMethod · 0.90
definitions.jsFile · 0.90
interactive.jsFile · 0.90
init.jsFile · 0.90
list.jsFile · 0.90
run.jsFile · 0.90
info.jsFile · 0.90
configMigrate.jsFile · 0.90

Calls

no outgoing calls

Tested by 1

testFunction · 0.72