()
| 183 | } |
| 184 | |
| 185 | doneStatus() { |
| 186 | const total = this.assertions.length; |
| 187 | const passed = this.passed().length; |
| 188 | const failed = this.failed().length; |
| 189 | const pending = this.pending().length; |
| 190 | const skipped = this.skipped().length; |
| 191 | return { |
| 192 | done: this.isDone(), |
| 193 | total, |
| 194 | passed, |
| 195 | failed, |
| 196 | pending, |
| 197 | skipped, |
| 198 | blockers: [...this.pending(), ...this.failed()].map((a) => ({ id: a.id, text: a.text, state: a.state })), |
| 199 | }; |
| 200 | } |
| 201 | |
| 202 | setAssertionState(assertionId, state, opts = {}) { |
| 203 | if (!Object.values(STATES).includes(state)) { |
no test coverage detected