Welcome to Unit Testing RxJS with Marble Diagrams
- โ Angular v8.2.14
- โ Jasmine-Marbles 0.4.1
- โ Typescript v3.4.4
- โ
npm startis working - โ
npm testis working - โ
npm run buildis working
Marble diagrams enables you to understand the behavior of RxJS observables and operators visually. It also helps to write unit test for asynchronous code in synchronous manner want to learn more please watch my course till the end.
-
โ Fundamentals of Hot & Cold Observables
-
โ Marble Diagrams Concepts
-
โ Marble Testing Syntaxes
-
โ Introduction to
jasmine-marbleslibrary -
โ Unit Testing Observables & Operators using marble diagrams
-
โ Mocking Observables using Marble Testing
- Make sure you are at here https://github.com/rupeshtiwari/UnitTesting-RxJS-Marble-Diagrams
- Click on
Clone or Downloadbutton. - Copy the Git clone URL
https://github.com/rupeshtiwari/UnitTesting-RxJS-Marble-Diagrams.git - In your box run below command to get the source code
git clone https://github.com/rupeshtiwari/UnitTesting-RxJS-Marble-Diagrams.git- Go to
UM-STARTfolder - Delete
package-lock.jsonfile &node_modulesfolder if they exists. - Open Terminal and run
npm i - To run the angular app please run command
npm start - To run unit tests please run command
npm test
Thanks and happy coding ๐
I am trying my best to keep this repository live and working. I recently updated this repository to match with latest angular version. Also did a quick test everything looks okay. Still if you find any issues please feel free to create issues or post a comment to UnitTesting-RxJS-Marble-Diagrams Problem Solver article.
I will be happy to take any pull requests that you have to improve this code base. Thanks for your support ๐