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

Contradicting issue reports between async-await-events and no-await-sync-events #801

Closed
wadehammes opened this issue Aug 14, 2023 · 12 comments · Fixed by #803
Closed

Contradicting issue reports between async-await-events and no-await-sync-events #801

wadehammes opened this issue Aug 14, 2023 · 12 comments · Fixed by #803
Assignees
Labels
bug Something isn't working released

Comments

@wadehammes
Copy link

wadehammes commented Aug 14, 2023

Have you read the Troubleshooting section?

Yes

Plugin version

latest

ESLint version

latest

Node.js version

18.16.1

package manager and version

pnpm 8.6.12

Operating system

Macos 13.5

Bug description

I upgraded to v6 and was first met with this error in my Vercel build:

image

Easy enough. These had no await so I added that before each. Thinking I would be in the clear, I wasn't expecting the build to fail. However, I am now getting the opposite error in Vercel:

image

Unsure of what to do here or if this a bug or I need to do some combination of rules config in my eslint. Thanks for the help in advance!

Steps to reproduce

See above

Error output/screenshots

No response

ESLint configuration

No rules overridden in ESLint

Rule(s) affected

async-await-events and no-await-sync-events

Anything else?

No response

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

No

@wadehammes wadehammes added bug Something isn't working triage Pending to be triaged by a maintainer labels Aug 14, 2023
@wadehammes
Copy link
Author

I wonder if this relates to #669

@wadehammes wadehammes changed the title Conflicting issue reports between async-await-events and no-await-sync-events Contradicting issue reports between async-await-events and no-await-sync-events Aug 14, 2023
@Belco90
Copy link
Member

Belco90 commented Aug 14, 2023

Hi @wadehammes, thanks for reporting.

Just to confirm, you are extending one of the provided presets without overriding any rule manually, right?

@Belco90 Belco90 removed the triage Pending to be triaged by a maintainer label Aug 14, 2023
@wadehammes
Copy link
Author

wadehammes commented Aug 14, 2023

Hi @wadehammes, thanks for reporting.

Just to confirm, you are extending one of the provided presets without overriding any rule manually, right?

yes I am extending plugin:testing-library/react in my eslint plugins, no manually overridden rules

@tobiasklevenz
Copy link

seeing similar errors with 6.0.0 userEvent.click is not sync and actually does need await

@teobmg
Copy link

teobmg commented Aug 16, 2023

Same issue here - just extending no overriding

@Belco90 Belco90 self-assigned this Aug 16, 2023
@Belco90
Copy link
Member

Belco90 commented Aug 16, 2023

I'll take care of this one next week (hopefully).

@github-actions
Copy link

🎉 This issue has been resolved in version 6.0.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@fabb
Copy link

fabb commented Aug 25, 2023

@Belco90 i still see the issue of false await-async-events errors in 6.0.1.

I extend the plugin:testing-library/react preset and do not override any testing-library rules, and i checked the node_modules, the correct eslint-plugin-testing-library version is installed, and i don't use an eslint cache.

@Belco90
Copy link
Member

Belco90 commented Aug 25, 2023

@fabb can you create a new issue for it? So you can describe better the problem.

@fabb
Copy link

fabb commented Aug 25, 2023

@Belco90 it's exactly the same problem as in the OP. but sure, i can create a new ticket if reopening is not possible.

@tay1orjones
Copy link

v6.0.1 fixed it for us, thanks!

@fabb
Copy link

fabb commented Sep 14, 2023

Ok nvm, I thought we could remove async for react, but it's the other way around 🙈

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working released
Projects
None yet
6 participants