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
Describe the bug
I'm trying to write a Jest unit test for one of my components that is rendering an Imgix image. The test is breaking with this error TypeError: Cannot read properties of undefined (reading 'split')
To Reproduce
Run a test that renders an Imgix component render(<Imgix src="https://www.google.com/image-url" htmlAttributes={{ alt: "Image alt" }} />) using @testing-library/react
Describe the bug
I'm trying to write a Jest unit test for one of my components that is rendering an Imgix image. The test is breaking with this error
TypeError: Cannot read properties of undefined (reading 'split')
To Reproduce
Run a test that renders an Imgix component
render(<Imgix src="https://www.google.com/image-url" htmlAttributes={{ alt: "Image alt" }} />)
using@testing-library/react
and then test
Expected behaviour
Expect the test to succeed and image tag to be part of the document when testing.
The text was updated successfully, but these errors were encountered: