question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

expect.fail() and should.fail() are not documented

See original GitHub issue

expect.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:closed
  • Created 8 years ago
  • Reactions:2
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
keithamuscommented, May 24, 2016

Hey @alexbooker we have yet to release the update docs. It’ll happen in the next few weeks, rest assured.

1reaction
lucasfcostacommented, Apr 8, 2016

Seems good, I’m gonna do it this afternoon then, this seems to be very important for our users.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found