testing-library / eslint-plugin-testing-library

ESLint plugin to follow best practices and anticipate common mistakes when writing tests with Testing Library
https://npm.im/eslint-plugin-testing-library
MIT License
968 stars 135 forks source link

fix(await-async-events): avoid reporting `userEvent.setup()` in wrappers #834

Closed doochik closed 7 months ago

doochik commented 8 months ago

Checks

Changes

Skipping all CallExpressions with nodes named "setup" in the await-async-events rule

Context

Better fix for #800 after #817

Belco90 commented 7 months ago

@all-contributors please add @doochik for code and test.

allcontributors[bot] commented 7 months ago

@Belco90

I've put up a pull request to add @doochik! :tada:

github-actions[bot] commented 7 months ago

:tada: This PR is included in version 6.1.2 :tada:

The release is available on:

Your semantic-release bot :package::rocket: