-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
React testing library render() fails when rendering NGL stage #33
Comments
Possibly react-ngl doesn't support later versions of React (16+)? |
Thank you for reporting an issue. When I run
|
@gky360 Thanks for your response. I've attempted to add the following dependencies: In my
That didn't help unfortunately, I'm still getting the same error. Could you please specify which exact dependencies / configurations I should add to make it work? |
I'm not sure but I found using https://github.com/MasatoMakino/minimal-test-environment-jest-threejs |
I've added all canvas and gl dependencies and configurations so far to the create-react-app. The test still fails with the same error. In the threejs test they don't use JSX, which might be related. https://github.com/JAZZ-FROM-HELL/react-ngl-testing-library/tree/jest-canvas-webgl |
When attempting to test an app that contains React NGL
<Stage/>
using React testing library,render()
operation fails with errorTypeError: Cannot read property 'setParameters' of undefined
See minimal reproduction based on create-react-app and the basic NGL React example here
`
TypeError: Cannot read property 'setParameters' of undefined
`
The text was updated successfully, but these errors were encountered: