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
importtestfrom"jest-ava-api"importReact,{createElement}from"react"import{createRenderer}from"react-addons-test-utils"constrenderer=(...args)=>{// I guess this is detected as a componentconstrender=createRenderer()render.render(...args)returnrender.getRenderOutput()}test("what",()=>{return{isActive: ()=>false,// what?}})
react/no-multi-comp is detecting 2 components here since I get a warning on the last () => false.
Both are wrong.
Ps: the code does not make sense as it is as I removed some part to make the debugging more easy.
Not that if I does not import createElement, the error seems to disappear (but I need this...)