This repository was archived by the owner on Jul 28, 2025. It is now read-only.
Mock QueryRaw #1333
Unanswered
mwarnerdotme
asked this question in
Q&A
Mock QueryRaw
#1333
Replies: 1 comment 5 replies
-
Mocking raw queries is currently not supported unfortunately. It should be possible to add, I just haven't had the feature request until now. |
Beta Was this translation helpful? Give feedback.
5 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.
Uh oh!
There was an error while loading. Please reload this page.
-
Does anyone know how to mock QueryRaw calls? All mocks are attached to specific models and there doesn't seem to be a clean/easy way to mock a query that returns RawJSON from a jsonb column, for example. I tried adding a custom expectation to the mock server's expectations slice but those expectations also seem to be attached to a specific model. This is my custom SQL query in my route handler:
Beta Was this translation helpful? Give feedback.
All reactions