You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it('effect autodeps config must have at least 1 required argument',()=>{
29
+
expect(()=>{
30
+
validateEnvironmentConfig({
31
+
inferEffectDependencies: [
32
+
{
33
+
function: {
34
+
source: 'react',
35
+
importSpecifierName: 'useEffect',
36
+
},
37
+
numRequiredArgs: 0,
38
+
},
39
+
],
40
+
}asany);
41
+
}).toThrowErrorMatchingInlineSnapshot(
42
+
`"InvalidConfig: Could not validate environment config. Update React Compiler config to fix the error. Validation error: numRequiredArgs must be > 0 at "inferEffectDependencies[0].numRequiredArgs""`,
0 commit comments