Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breaking: Rename consistent-output rule to require-test-output #150

Closed
wants to merge 1 commit into from

Commits on Jul 13, 2021

  1. breaking: rename consistent-output rule to require-test-output

    Changes the default rule behavior to always require a test `output` assertion. The old default  behavior of `consistent` (only require `output` assertions if some tests have it) is still provided as an available option.
    
    * [As of ESLint 7](https://eslint.org/docs/user-guide/migrating-to-7.0.0#additional-validation-added-to-the-ruletester-class), the `output` property is required for test cases that provide an autofix
    * And even when test cases don't autofix, it's still best practice to assert that there's no autofix with `output: null`
    bmish committed Jul 13, 2021
    Configuration menu
    Copy the full SHA
    4ea8bff View commit details
    Browse the repository at this point in the history