Rangle.io : Angular 2 Training
Rangle.io : Angular 2 Training
Introduction
License
Why Angular?
The Architect's Guide to Angular
EcmaScript 6 and TypeScript Features
The JavaScript Toolchain
Bootstrapping an Angular Application
Components in Angular
Directives
Advanced Components
Observables
Angular Dependency Injection
Http
Change Detection
Zone.js
Advanced Angular
Immutable.js
Pipes
Forms
Modules
Routing
State Management
TDD Testing
The Testing Toolchain
Test Setup
Simple Test
Using Chai
Testing Components
Testing Services
Testing Redux
Testing Simple Actions
Testing Complex Actions
Testing Reducers
Afterthoughts
Migrating AngularJS Projects to Angular
Project Setup
Angular CLI
Accessibility in Angular
Internationalization in Angular
Glossary
Further Reading And Reference
Powered by GitBook

Testing Redux

Unit testing Redux is a very straightforward process. There are two primary units:

  • Reducers are pure functions that lend themselves well to testing.

  • Actions trigger changes in a Redux system. There are two broad categories of actions: synchronous (which are quite simple to test) and asynchronous (which are slightly more involved).

The examples below should provide you with a strong foundation for testing Redux applications.

Previous
Executing Tests Asynchronously
Next
Testing Simple Actions
Last updated 2 years ago