Testing projects that import model-viewer #3169
Unanswered
jmiller-83
asked this question in
Q&A
Replies: 1 comment
-
Ok, I think I have a workaround for my issue. I had to provide a mock for the
|
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
Uh oh!
There was an error while loading. Please reload this page.
-
I have a React-based web app that was created with
create-react-app
. I'm able to make use of the<model-viewer>
component within the app with the import statement `import @google/model-viewer", and 3D models are displayed as expected. However, when I try to do any unit testing with jest, I get errors caused by the above import statement, for example:Are there any recommendations for test configuration/mocking in order to get past these errors?
Beta Was this translation helpful? Give feedback.
All reactions