Skip to content

vsavkin/testing_ngrx_effects

Repository files navigation

Testing NgRx Effects

This repo shows a few things of what to do and not to do when testing NgRx effects.

  1. Don't use TestBed unless you have to. Prefer instantiating effects directly.
  2. Don't use beforeEach unless you have to. Prefer helper functions, so you can use "const" everywhere.
  3. Don't use .then or .subscribe in 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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors