Skip to content

no-node-access rule output false-positive warning for FireEvent after 7.5.4 #1038

@pstachula-dev

Description

@pstachula-dev

Have you read the Troubleshooting section?

Yes

Plugin version

7.5.4

ESLint version

9.30.1

Node.js version

22.14

Bug description

False positive error for fireEvent from:
import { fireEvent } from '@testing-library/react';

Steps to reproduce

  1. Bump eslint-plugin-testing-library from 7.5.3 to 7.5.4

Error output/screenshots

Image

ESLint configuration

  {
    files: ['**/*.test.{ts,tsx}'],
    ...pluginTestingLibrary.configs['flat/react'],
  },

Rule(s) affected

no-node-access

Anything else?

No response

Do you want to submit a pull request to fix this bug?

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions