Skip to content

False positives with arrow function shorthand #21

Closed
@jrolfs

Description

@jrolfs

The playwright/missing-playwright-await rule seems to be reporting false positives for expectations that are returned from brace-less arrow functions.

{
  /* ... @state/test machine ... */
  
            unchecked: {
              meta: {
                test: async ({ page }) =>
                  expect(page).toHaveText('Terms agreement is required'), // ← false positive, even though implicitly returned
              },
            },
            
  /* ... @state/test machine ... */
}

I'll try to put together a simple reproduction case.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions