Unit testing a query requires a real store #683
Unanswered
JohanHeyvaert
asked this question in
Q&A
Replies: 1 comment
-
Yes, it's Ok. You are creating a new fresh store each time. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm submitting a...
Current behavior
Unit testing an akita query seems to require a real store. At least the documentation doesn't show how to do it and in the source code I see that Query uses an internal function (_select) of the store, so probably not a good idea to mock this.
Our current tests, with a real store, are working, but I'm just wondering if this is a good practice.
Expected behavior
Wouldn't it be better if we could unit test a query with a mocked store instead of an actual store?
Beta Was this translation helpful? Give feedback.
All reactions