Test failing while importing Plot from react plotly

I am writing a test for my react app where I am also using react-plotly. But my test is failing if I am importing Plot from react-plotly in the component for which I am writing test. Attaching the error msg screenshot. Didn’t see any discussion around this topic, seems like its not a really common issue.