MCPcopy
hub / github.com/codeceptjs/CodeceptJS / simplify

Method simplify

lib/result.js:199–207  ·  view source on GitHub ↗

* @returns {object} The JSON representation of this result.

()

Source from the content-addressed store, hash-verified

197 * @returns {object} The JSON representation of this result.
198 */
199 simplify() {
200 return {
201 hasFailed: this.hasFailed,
202 stats: this.stats,
203 duration: this.duration,
204 tests: this._tests.map(test => serializeTest(test)),
205 failures: this._failures,
206 }
207 }
208
209 /**
210 * Saves this result to a JSON file.

Callers 1

saveMethod · 0.95

Calls 1

serializeTestFunction · 0.90

Tested by

no test coverage detected