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

Function finish

lib/command/configMigrate.js:61–71  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

59 config.name = testsPath.split(path.sep).pop()
60
61 const finish = () => {
62 fs.writeFileSync(configFile, `exports.config = ${util.inspect(config, false, 4, false)}`, 'utf-8')
63 success(`Config is successfully migrated at ${configFile}`)
64
65 if (result.delete) {
66 if (fileExists(jsonConfigFile)) {
67 fs.unlinkSync(jsonConfigFile)
68 success('JSON config file is deleted!')
69 }
70 }
71 }
72 finish()
73 }
74 })

Callers 1

configMigrate.jsFile · 0.70

Calls 2

fileExistsFunction · 0.90
successFunction · 0.85

Tested by

no test coverage detected