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

Method _failed

lib/helper/Puppeteer.js:2255–2264  ·  view source on GitHub ↗
(test)

Source from the content-addressed store, hash-verified

2253 }
2254
2255 async _failed(test) {
2256 await this._withinEnd()
2257
2258 if (this.options.trace) {
2259 await this.page.tracing.stop()
2260 const _traceName = this.currentRunningTest.artifacts.trace.replace('.json', '.failed.json')
2261 fs.renameSync(this.currentRunningTest.artifacts.trace, _traceName)
2262 test.artifacts.trace = _traceName
2263 }
2264 }
2265
2266 async _passed(test) {
2267 await this._withinEnd()

Callers

nothing calls this directly

Calls 2

_withinEndMethod · 0.95
stopMethod · 0.80

Tested by

no test coverage detected