Skip to content

no-try-expect is still part of the jest/recommended #678

@alexilyaev

Description

@alexilyaev

To continue #648

@G-Rath Looks like no-try-expect is still in the recommended list (v24 major was released recently).

I got here because I'm using eslint-find-rules to find deprecated rules in my configs and it failed for jest/recommended.

I'm assuming the recommended property needs to be removed from the rule file.
But also thinking if this can be prevented in the future.
Although if we deprecate a rule and still keep it in the jest/recommended, then I'm not sure how.

Any way, here's how I ran eslint-find-rules:

// .eslintrc.js
module.exports = {
  plugins: ['jest'],
  extends: ['plugin:jest/recommended'],
};
$ npx eslint-find-rules --deprecated jest-bug.js

deprecated rules

jest/no-try-expect

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions