Skip to content

linter: consistent-test-it considers sibling describe as parent #22633

@ipanasenko

Description

@ipanasenko

What version of Oxlint are you using?

1.63.0

What command did you run?

nothing special, default settings

What does your .oxlintrc.json (or oxlint.config.ts) config file look like?

module.exports = {
  plugins: ['jest', 'vitest'],
  rules: {
    'jest/consistent-test-it': ['error', {fn: 'test', withinDescribe: 'it'}],
    'vitest/consistent-test-it': ['error', {fn: 'test', withinDescribe: 'it'}],
  },
};

What happened?

Standalone test is reported as if it's inside describe

Image

Potential fix, but I couldn't verify it on my laptop: #22632

Metadata

Metadata

Assignees

Labels

Type

Priority

None yet

Effort

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions