-
Notifications
You must be signed in to change notification settings - Fork 153
Open
@Janpot
Description
Name for new rule
prefer-top-level-configure
Description of the new rule
Fail when configure
is not called top-level
Testing Library feature
global configuration utility
Testing Library framework(s)
@testing-library/dom
, @testing-library/react
, perhaps others
What category of rule is this?
Warns about a potential error
Optional: other category of rule
No response
Code examples
import { configure } from '@testing-library/react' test('some test', () => { // FAIL: configure({ reactStrictMode: true }) // ... })
import { configure } from '@testing-library/react' // OK: configure({ reactStrictMode: true }) test('some test', () => { // ... })
Anything else?
No response
Do you want to submit a pull request to make the new rule?
Yes