Is it possible to trigger a warning when dependencies are not overridden during tests? #221
Unanswered
vitorvarela
asked this question in
Q&A
Replies: 1 comment 2 replies
-
|
If you read the documentation on context precedence you'll see why. https://hmlongco.github.io/Factory/documentation/factory/contexts |
Beta Was this translation helpful? Give feedback.
2 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.
-
I want to ensure that we are overriding dependencies during unit tests. This is a good approach to make sure we have full control over our dependencies.
I noticed that is possible to create scopes for previews and unit tests.
So i would image if I did something like this:
It would result in an error during the tests, causing a crash.
My question is why when I override the dependencies during tests doesnβt take precedence over
.onTest { faltaError() }.Is there another way to ensure we always override dependencies during unit tests, perhaps by triggering an error or warning?
Beta Was this translation helpful? Give feedback.
All reactions