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

Method fails

lib/mocha/scenarioConfig.js:32–35  ·  view source on GitHub ↗

* Declares that test should fail. * If test passes - throws an error. * Can pass an Error object or regex matching expected message. * * @returns {this}

()

Source from the content-addressed store, hash-verified

30 * @returns {this}
31 */
32 fails() {
33 this.test.throws = new Error()
34 return this
35 }
36
37 /**
38 * Retry this test for x times

Callers 2

ui_test.jsFile · 0.45
session_test.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected