Skip to content

☂️ eslint-plugin-jest #492

@Boshen

Description

@Boshen

Warning

This comment is maintained by CI. Do not edit this comment directly.
To update comment template, see https://github.com/oxc-project/oxc/tree/main/tasks/lint_rules

This is the tracking issue for eslint-plugin-jest.

There are 70(+ 0 deprecated) rules.

  • 1/19 recommended rules are remaining as TODO
  • 17/51 not recommended rules are remaining as TODO

To get started, run the following command:

just new-jest-rule <RULE_NAME>

Then register the rule in crates/oxc_linter/src/rules.rs and also declare_all_lint_rules at the bottom.

Recommended rules

✅: 18, 🚫: 0, ⏳: 0 / total: 19
Status Name
jest/expect-expect
jest/no-alias-methods
jest/no-commented-out-tests
jest/no-conditional-expect
jest/no-deprecated-functions
jest/no-disabled-tests
jest/no-done-callback
jest/no-export
jest/no-focused-tests
jest/no-identical-title
jest/no-interpolation-in-snapshots
jest/no-jasmine-globals
jest/no-mocks-import
jest/no-standalone-expect
jest/no-test-prefixes
jest/valid-describe-callback
jest/valid-expect
jest/valid-expect-in-promise
jest/valid-title

✅ = Implemented, 🚫 = No need to implement, ⏳ = Fix pending

Not recommended rules

✅: 34, 🚫: 0, ⏳: 0 / total: 51
Status Name
jest/consistent-test-it
jest/max-expects
jest/max-nested-describe
jest/no-conditional-in-test
jest/no-confusing-set-timeout
jest/no-duplicate-hooks
jest/no-error-equal
jest/no-hooks
jest/no-large-snapshots
jest/no-restricted-jest-methods
jest/no-restricted-matchers
jest/no-test-return-statement
jest/no-unnecessary-assertion
jest/no-unneeded-async-expect-function
jest/no-untyped-mock-factory
jest/padding-around-after-all-blocks
jest/padding-around-after-each-blocks
jest/padding-around-all
jest/padding-around-before-all-blocks
jest/padding-around-before-each-blocks
jest/padding-around-describe-blocks
jest/padding-around-expect-groups
jest/padding-around-test-blocks
jest/prefer-called-with
jest/prefer-comparison-matcher
jest/prefer-each
jest/prefer-ending-with-an-expect
jest/prefer-equality-matcher
jest/prefer-expect-assertions
jest/prefer-expect-resolves
jest/prefer-hooks-in-order
jest/prefer-hooks-on-top
jest/prefer-importing-jest-globals
jest/prefer-jest-mocked
jest/prefer-lowercase-title
jest/prefer-mock-promise-shorthand
jest/prefer-snapshot-hint
jest/prefer-spy-on
jest/prefer-strict-equal
jest/prefer-to-be
jest/prefer-to-contain
jest/prefer-to-have-been-called
jest/prefer-to-have-been-called-times
jest/prefer-to-have-length
jest/prefer-todo
jest/require-hook
jest/require-to-throw-message
jest/require-top-level-describe
jest/unbound-method
jest/valid-expect-with-promise
jest/valid-mock-module-path

✅ = Implemented, 🚫 = No need to implement, ⏳ = Fix pending

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-linterArea - Lintergood first issueExperience Level - Good for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions