mirror of
https://github.com/zebrajr/react.git
synced 2025-12-06 12:20:20 +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',
|
name: 'Pipeline errors are reported',
|
||||||
code: normalizeIndent`
|
code: normalizeIndent`
|
||||||
import useMyEffect from 'useMyEffect';
|
import useMyEffect from 'useMyEffect';
|
||||||
|
import {AUTODEPS} from 'react';
|
||||||
function Component({a}) {
|
function Component({a}) {
|
||||||
'use no memo';
|
'use no memo';
|
||||||
useMyEffect(() => console.log(a.b));
|
useMyEffect(() => console.log(a.b), AUTODEPS);
|
||||||
return <div>Hello world</div>;
|
return <div>Hello world</div>;
|
||||||
}
|
}
|
||||||
`,
|
`,
|
||||||
|
|
@ -262,7 +263,7 @@ const tests: CompilerTestCases = {
|
||||||
source: 'useMyEffect',
|
source: 'useMyEffect',
|
||||||
importSpecifierName: 'default',
|
importSpecifierName: 'default',
|
||||||
},
|
},
|
||||||
numRequiredArgs: 1,
|
autodepsIndex: 1,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user