Get.context is null during unit tests #695
Labels
expected behavior
it is not a bug
Not an issue
This issue does not have any bug report or feature request, so it does not qualify as a valid issue
I am using mobx for state management and before adding get package to my project, I was passing the context to each action I needed to. Now by the help of Get.context, I remove all the context inputs from my actions. But during tests, this context is empty and it seems Get won't initialize itself correctly.
It would be great if there was a tool to initialize Get before tests, if it exists, I couldn't find it through the docs.
I think we need a separated section in docs related to testing. The ways that we can solve the anti-pattern dependency handling of Get in our tests.
The text was updated successfully, but these errors were encountered: