Replies: 1 comment 3 replies
-
What version of |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have tried every iteration of this, and I can only conclude that create-react-app has something in the set up that prevents the test renderer from running properly.
I followed the example from the docs pretty much exactly. Here's it working perfectly in code sandbox: https://codesandbox.io/s/react-three-test-renderer-example-js-ne4w0
and another one in TS: https://codesandbox.io/s/react-three-test-render-example-ts-cj1re?file=/src/Box.tsx:0-755
They work. And yet, when I try to run tests locally, they fail. The
children
array is always empty, so I getundefined
errors thrown at me when I try to dorenderer.scene.children[0].allChildren
.Steps to repreoduce
--template typescript
if you so choose)boxGeometry
andmeshStandardMatieral
children
in yourApp.test.js
.Honestly just copy my code in locally. If it works, please let me know and drive me even deeper into madness.
I've tried with both yarn and npm, too.
Beta Was this translation helpful? Give feedback.
All reactions