(hook, cfg)
| 42 | // framework's own output module (when available) so it shows up in test |
| 43 | // reports; the hook is still marked ran so it doesn't get retried. |
| 44 | function applyHook(hook, cfg) { |
| 45 | try { |
| 46 | hook.fn(cfg) |
| 47 | } catch (err) { |
| 48 | hook.error = err |
| 49 | const out = globalThis.codeceptjs?.output |
| 50 | if (out && typeof out.error === 'function') out.error(`config hook failed: ${err.message}`) |
| 51 | else console.error('config hook failed:', err) |
| 52 | } finally { |
| 53 | hook.ran = true |
| 54 | } |
| 55 | } |
| 56 | |
| 57 | const configFileNames = ['codecept.config.js', 'codecept.conf.js', 'codecept.js', 'codecept.config.cjs', 'codecept.conf.cjs', 'codecept.config.ts', 'codecept.conf.ts'] |
| 58 |
no outgoing calls
no test coverage detected