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

Method _passed

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

Source from the content-addressed store, hash-verified

2264 }
2265
2266 async _passed(test) {
2267 await this._withinEnd()
2268
2269 if (this.options.trace) {
2270 await this.page.tracing.stop()
2271 if (this.options.keepTraceForPassedTests) {
2272 const _traceName = this.currentRunningTest.artifacts.trace.replace('.json', '.passed.json')
2273 fs.renameSync(this.currentRunningTest.artifacts.trace, _traceName)
2274 test.artifacts.trace = _traceName
2275 } else {
2276 fs.unlinkSync(this.currentRunningTest.artifacts.trace)
2277 }
2278 }
2279 }
2280
2281 /**
2282 * {{> wait }}

Callers

nothing calls this directly

Calls 2

_withinEndMethod · 0.95
stopMethod · 0.80

Tested by

no test coverage detected