Need to inject config:environment
into all unit tests that touch Apollo
#55
Labels
config:environment
into all unit tests that touch Apollo
#55
Follow-up from #53.
It's a bit annoying to have to use a
needs: ['config:environment']
in addition to already needing aservice:apollo
in any unit test that touches Apollo. As of now, this blows up on theconfig.apollo
call when not using that injection becauseconfig
is undefined here.One way I'm working around this in my own tests is with this hack:
I'm not sure if there's a better way to handle this. At the very least, I think there should be a descriptive error like this when a required config isn't set up or available.
The text was updated successfully, but these errors were encountered: