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

Renaming screen import still triggers prefer-screen-queries #776

Open
abejfehr opened this issue Jul 14, 2023 · 0 comments
Open

Renaming screen import still triggers prefer-screen-queries #776

abejfehr opened this issue Jul 14, 2023 · 0 comments
Labels
bug Something isn't working triage Pending to be triaged by a maintainer

Comments

@abejfehr
Copy link

Have you read the Troubleshooting section?

Yes

Plugin version

v5.10.2

ESLint version

v8.16.0

Node.js version

v16.20.1

package manager and version

yarn 1.22.19

Operating system

macOS Monterey

Bug description

import { screen as rtlScreen } from '@testing-library/react-native';

...

rtlScreen.getByText(...); // fails

Steps to reproduce

  1. enable the prefer-screen-queries lint rule
  2. import screen, but rename it
  3. observe that the lint rule still errors

Error output/screenshots

No response

ESLint configuration

N/A

Rule(s) affected

prefer-screen-queries

Anything else?

No response

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

No

@abejfehr abejfehr added bug Something isn't working triage Pending to be triaged by a maintainer labels Jul 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage Pending to be triaged by a maintainer
Projects
None yet
Development

No branches or pull requests

1 participant