How to write Epic Unit Tests with TypeScript, Jest, Redux and RxJS 6

Tracy Ngot
2 min readSep 21, 2018

When we attempt to create some test lines for testing Epics with Redux, the task seems to be a bit painful. In this post, I am going to describe you step by step how to write an Epic Unit tests with TypeScript and the latest version of RxJS which includes a pipe helper.

First of all, I invite you to run the following command line to get a fresh new React app :

create-react-app unicorn — scripts-version=react-scripts-ts

--

--

CTO | Tech Lead | Occasional writer — I love writing about politics, lifestyle, and tech