mirror of
https://github.com/zebrajr/react.git
synced 2025-12-06 00:20:04 +01:00
[Runtime] Fix CI (#33999)
This commit is contained in:
parent
2aa5f9d4e3
commit
19baee813c
|
|
@ -247,9 +247,10 @@ const tests: CompilerTestCases = {
|
|||
name: 'Pipeline errors are reported',
|
||||
code: normalizeIndent`
|
||||
import useMyEffect from 'useMyEffect';
|
||||
import {AUTODEPS} from 'react';
|
||||
function Component({a}) {
|
||||
'use no memo';
|
||||
useMyEffect(() => console.log(a.b));
|
||||
useMyEffect(() => console.log(a.b), AUTODEPS);
|
||||
return <div>Hello world</div>;
|
||||
}
|
||||
`,
|
||||
|
|
@ -262,7 +263,7 @@ const tests: CompilerTestCases = {
|
|||
source: 'useMyEffect',
|
||||
importSpecifierName: 'default',
|
||||
},
|
||||
numRequiredArgs: 1,
|
||||
autodepsIndex: 1,
|
||||
},
|
||||
],
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user