How to test the loading variable which is coming from props in Jest?

Viewed 16

I want to know how to get the props value from component to test file and if loading is true then only I need to display the loader. How to test this in Jest as loading is coming from props?

    if(loading){
        return <Loader active focus={false} full-screen={false}/>
    }

0 Answers
Related