Jest: `expect(1===2)` should not silently pass

Created on 14 Mar 2017  路  2Comments  路  Source: facebook/jest

Do you want to request a feature or report a bug?
bug (usability issue)
What is the current behavior?
expect(1===2) does not cause test to fail.

What is the expected behavior?
Throw an error so the programmer knows they're doing it wrong.

Most helpful comment

eslint-plugin-jest 19.1 (will be released later this week) will have a lint rule that will warn for this use-case.

All 2 comments

eslint-plugin-jest 19.1 (will be released later this week) will have a lint rule that will warn for this use-case.

you can install eslint-plugin-jest@next for now.

Was this page helpful?
0 / 5 - 0 ratings