DEV Community

Cover image for The Complete Guide to NgRx Testing
Christian Lüdemann
Christian Lüdemann

Posted on

The Complete Guide to NgRx Testing

The main secret behind having better test coverage in an Angular app is to reduce the friction it takes to write tests and enforce test coverage by setting a test coverage threshold to be checked on every commit. NgRx and reactive testing is an area where many people get confused because it seems hard to write the tests to provoke and expect the desired behavior.

In NgRx there are different ways to test different parts of the app. We have reducers, actions, selectors and effects which all need its own know-how to test efficiently.

This post will show you how to test NgRx apps, what to test for and how to create the tests with ease.

https://christianlydemann.com/the-complete-guide-to-ngrx-testing/

Top comments (0)