davidcalhoun / eslint-plugin-test-selectors

Enforces that data-test-id attributes are added to interactive DOM elements (JSX) to help with UI testing. JSX only.
28 stars 14 forks source link

Inline fns not recognized #1

Closed davidcalhoun closed 5 years ago

davidcalhoun commented 6 years ago
<Bar onKeyUp={ () => handleKeyUp(option) }>foo</Bar>
davidcalhoun commented 5 years ago

Still happening with onChange. This is ignored:

<Select
  onChange={ () => {} }
/>
davidcalhoun commented 5 years ago

Seems to work fine with a reduced test case. Closing this out - will reopen if I see it happening again (I suspect I may have been using an older version).