Skip to content

no-wait-for-side-effects: not reporting VariableDeclaration nodes #368

Closed
@Belco90

Description

@Belco90

Also, I've noticed this rule is NOT reporting this case. Is that intentional? 🤔


    await waitFor(() => {

      userEvent.click(button) // reported

      const a = userEvent.click(button) // NOT reported

    })

Good catch. It's not intentional, but I detected it when implementing no-unnecessary-act, so it will be addressed there. I'll make sure to include this case in the tests.

Originally posted by @Belco90 in #363 (comment)

This will be finally addressed separately, after #259 gets released.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingpinnedPinned for different reasons. Issues with this label won't be flagged as stale by stalebotreleasedreleased on @alpha

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions