You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 5, 2020. It is now read-only.
This lib is really great, but I'm trying to make an effort to unit test all of my code and I was hoping to find examples of unit tests. Specifically the DI piece and mocking the NGXS pieces.
When my component constructor takes in the store as a constructor and I import NgxsModule.forRoot([MyState]) in the TestBed my tests still fail w/ "Can't resolve all parameters for ".
This would be a great repo to show how to unit test an app that uses NGXS including mocking.
The text was updated successfully, but these errors were encountered:
I was complicating things by using jest w/ the jest-presets-angular package and experimental decorators were turned off which screwed up the DI in my testbed. I feel a lot more sane now that the DI is working and I can mock Store.
Still, I think adding unit tests to the examples is a good idea and I'm willing to contribute to this repo personally.
This lib is really great, but I'm trying to make an effort to unit test all of my code and I was hoping to find examples of unit tests. Specifically the DI piece and mocking the NGXS pieces.
When my component constructor takes in the store as a constructor and I import
NgxsModule.forRoot([MyState])
in the TestBed my tests still fail w/ "Can't resolve all parameters for ".This would be a great repo to show how to unit test an app that uses NGXS including mocking.
The text was updated successfully, but these errors were encountered: