This repo shows a few things of what to do and not to do when testing NgRx effects.
- Don't use
TestBedunless you have to. Prefer instantiating effects directly. - Don't use
beforeEachunless you have to. Prefer helper functions, so you can use "const" everywhere. - Don't use
.thenor.subscribein your tests. It makes them fragile. Observables are reified. Take advantage of this! Use TestScheduler when you can. Use async/await or fakeAsync zone everywhere else.
