-
Notifications
You must be signed in to change notification settings - Fork 154
Open
Labels
good first issueGood for newcomersGood for newcomersnew ruleNew rule to be included in the pluginNew rule to be included in the plugin
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
Belco90
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomersnew ruleNew rule to be included in the pluginNew rule to be included in the plugin