(color = true)
| 101 | } |
| 102 | |
| 103 | #getTestSummary(color = true) { |
| 104 | if ( this.#didFail ) { |
| 105 | return color ? c.redBright(`🗙 FAILED: ${c.red(this.#title)}`) : `## 🗙 FAILED: ${this.#title}` |
| 106 | } |
| 107 | if ( this.#didWarn ) { |
| 108 | return color ? c.yellowBright(`⟁ WARNINGS: ${c.yellow(this.#title)}`) : `## ⟁ WARNINGS: ${this.#title}` |
| 109 | } |
| 110 | return color ? c.greenBright(`✓ PASSED: ${c.green(this.#title)}`) : `## ✓ PASSED: ${this.#title}` |
| 111 | } |
| 112 | |
| 113 | end(doEnv = false, onlyError = false) { |
| 114 | /* eslint-disable no-console */ |