First off, great job on this library—it's been a lifesaver!
The issue:
In my code, I sometimes use the Prisma function queryRaw (documentation). Unfortunately, when I run tests with prisma-mock, queryRaw always returns undefined. From what I can tell, no one has reported this before, and it’s not mentioned in the documentation. Are there any plans to implement this?
This isn't possible at the moment, but you can take advantage of our use of jest-mock-extended by utilizing mockImplementation to mock the result yourself.
Hello,
First off, great job on this library—it's been a lifesaver!
The issue:
In my code, I sometimes use the Prisma function
queryRaw
(documentation). Unfortunately, when I run tests withprisma-mock
,queryRaw
always returnsundefined
. From what I can tell, no one has reported this before, and it’s not mentioned in the documentation. Are there any plans to implement this?