Skip to content

no-wait-for-side-effects erroring in promise #500

Closed
@Brianzchen

Description

@Brianzchen

Plugin version

v4.10.1

ESLint version

v7.31.0

Node.js version

v12.17.0

npm/yarn version

yarn 1.22.10

Operating system

macOS 10.14.6

Bug description

When I use fireEvent within a .then() of waitFor it throws an error

Steps to reproduce

Basically what's shown in the screenshot. I prefer to use .then() as opposed to async await but it throws errors when it shouldn't

Screen Shot 2021-10-18 at 10 13 09 am

Error output/screenshots

No response

ESLint configuration

A few private stuff but the rule sets are

    'testing-library/no-dom-import': 2,
    'testing-library/no-manual-cleanup': 2,
    'testing-library/no-wait-for-empty-callback': 2,
    'testing-library/no-wait-for-side-effects': 2,
    'testing-library/prefer-screen-queries': 2,
    'testing-library/prefer-wait-for': 2,

Rule(s) affected

testing-library/no-wait-for-side-effects

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 workingreleased

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions