Need some guidance on the best way to mock models in Jest #552
Unanswered
aboyer1013
asked this question in
Q&A
Replies: 0 comments
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.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm struggling to mock Keystone models in Jest, using version 29.6.2. I get this error:
Error: tweak can only work over models, observable objects/arrays, or primitives, but got [object Object] instead
Here's my setup:
Any guidance on my approach overall would be appreciated or if you could point to an existing example. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions