Replies: 2 comments
-
As far as I’m aware Jest does not serve static assets like when using regular react. At least not by default. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Converting this to a discussion as it is not an issue and unrelated to Drei |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What is your question:
Hey,
I have created a ModelView component to handle
.glb
files, and for that purpose, we're usinguseGLTF()
hook. The component is working fine in our environment and the models are working as well.But when I try to create the unit-test to test this component, I'm facing an unexpected issue.
Unit test code:
Production code:
My package.json:
Thanks,
Beta Was this translation helpful? Give feedback.
All reactions