Skip to content

Commit 88c614c

Browse files
committed
Add valid case for jest.useFakeTimer
1 parent 4a83035 commit 88c614c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/eslint-plugin-react-hooks/__tests__/ESLintRulesOfHooks-test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,8 @@ const tests = {
206206
_use();
207207
_useState();
208208
use_hook();
209+
// also valid because it's not matching the PascalCase namespace
210+
jest.useFakeTimer()
209211
`,
210212
`
211213
// Regression test for some internal code.

0 commit comments

Comments
 (0)