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
-
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