Skip to content

Commit 19baee8

Browse files
authored
[Runtime] Fix CI (facebook#33999)
1 parent 2aa5f9d commit 19baee8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/eslint-plugin-react-hooks/__tests__/ReactCompilerRule-test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,9 +247,10 @@ const tests: CompilerTestCases = {
247247
name: 'Pipeline errors are reported',
248248
code: normalizeIndent`
249249
import useMyEffect from 'useMyEffect';
250+
import {AUTODEPS} from 'react';
250251
function Component({a}) {
251252
'use no memo';
252-
useMyEffect(() => console.log(a.b));
253+
useMyEffect(() => console.log(a.b), AUTODEPS);
253254
return <div>Hello world</div>;
254255
}
255256
`,
@@ -262,7 +263,7 @@ const tests: CompilerTestCases = {
262263
source: 'useMyEffect',
263264
importSpecifierName: 'default',
264265
},
265-
numRequiredArgs: 1,
266+
autodepsIndex: 1,
266267
},
267268
],
268269
},

0 commit comments

Comments
 (0)