expect.fail() and should.fail() are not documented
See original GitHub issueexpect.fail()
and should.fail()
have been added in version 2.1.0. Although they both have a docstring (docstring for expect
and docstring for should
), they cannot be found in the documentation. Their assert
counterpart, however, can be found here.
That would be very useful for plugin developers 😃
Issue Analytics
- State:
- Created 8 years ago
- Reactions:2
- Comments:10 (5 by maintainers)
Top Results From Across the Web
Fail a test with Chai.js - javascript - Stack Overflow
There are many ways to fake a failure – like the assert.fail() ... For instance, if you expect a exception to be thrown,...
Read more >Expect / Should - Chai Assertion Library
expect (function () {}).to.not.throw(); expect({a: ... .a accepts an optional msg argument which is a custom error message to show when the assertion...
Read more >Expected Failures | Apple Developer Documentation
Configure your test to handle an expected assertion failure by calling XCTExpectFailure with a reason for the expected failure before the assertion you...
Read more >Assertions Reference | GoogleTest
FAIL. FAIL(). Generates a fatal failure, which returns from the current function. Can only be used in functions that return void ...
Read more >chai.ExpectStatic.fail JavaScript and Node.js code examples
expect.fail('Did not read expected Pod log result') ... describe('test-integration/basic', () => { let namespace = null beforeEach(async () => { namespace ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey @alexbooker we have yet to release the update docs. It’ll happen in the next few weeks, rest assured.
Seems good, I’m gonna do it this afternoon then, this seems to be very important for our users.