(
test?: Mocha.Runnable,
app: App | undefined = this.#lastApp
)
| 552 | } |
| 553 | |
| 554 | public async maybeSaveLogs( |
| 555 | test?: Mocha.Runnable, |
| 556 | app: App | undefined = this.#lastApp |
| 557 | ): Promise<void> { |
| 558 | const { FORCE_ARTIFACT_SAVE } = process.env; |
| 559 | if (test?.state !== 'passed' || FORCE_ARTIFACT_SAVE) { |
| 560 | await this.saveLogs(app, test?.fullTitle()); |
| 561 | } |
| 562 | } |
| 563 | |
| 564 | public async screenshot( |
| 565 | app: App | undefined = this.#lastApp, |
no test coverage detected