Properly setup tests environment with Jest + Prisma #13172
Unanswered
joaocasarin
asked this question in
Q&A
Replies: 1 comment 3 replies
-
I'm getting the same "circularly references" errors too. There's a discussion thread about this here: #7084 (comment) |
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
-
So, I basically followed the official docs for prisma unit testing using the singleton method, but can't make it work as expected.
If you want to jump to my code, here it is: repo
Function tested:
Now the test file
Error raised from TS in the PROBLEMS tab on VSCode:
Error thrown when running the tests:
Beta Was this translation helpful? Give feedback.
All reactions