-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
ESLint: Disable jest rules for storybook playwright #47141
Conversation
Size Change: 0 B Total Size: 1.33 MB ℹ️ View Unchanged
|
Flaky tests detected in 788048a. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/3910317417
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
What?
In #47065 we enabled
jest
recommended ESLint rules for our tests.However, I just noticed that there are a couple of false positives in the storybook playwright specs. They're false positives since they reference the playwright test runner, not the jest one.
This PR disables that directory from being linted with the ESLint rules for tests.
Why?
To fix the related ESLint errors, see the screenshot below.
How?
We're just altering our ESLint config to disable
jest
,@testing-library
andjest-dom
rules for the storywright playwright directory.Testing Instructions
Run
npm run lint:js
and verify there are no errors.Testing Instructions for Keyboard
None
Screenshots or screencast