Complete - Unit Testing -Mocha Chai in Node Typescript - 2 Hrs

preview_player
Показать описание
►Kumar Programming - Keep Learning in a simple way

► Topics covered in this Series
1. Introduction –Unit Testing Mocha Chai - Done
2. Installation and Writing Test Suites and Test cases and Running Test cases (describe , it) - Done
3. Chai - Different Chai Assertion Styles (assert, expect, should) - Done
4. Common Chai Assertions - Done
5. Hooks (before, after, beforeEach, afterEach) - Done
6. Nested Test Suites- Done
7. Skipping and Focusing Tests (skip, only) - Done
8. Sinon (Spying, Mocking and Stubbing) - Done
9. Asynchronous Testing – (async await) - Done
10. Testing Promise - Done
11. Nock - Mock Api Calls and data - Done
12. GET POST Api Testing - Done
13. Code Coverage and Reporting (nyc-Istanbul) - Done

► Used Framework and libraries
Mocha - Unit testing framework is the most popular framework for TypeScript/Javascript unit testing.
In this series, I used below popular libraries
- Chai - for assertion with with multiple assertion style
- Sinon - for spying , mocking and stubbing
- AXIOS - GET/POST data from API
- Nock - for async api mocking
- Nyc - Unit test coverage report by nyc Istanbul and configurations

► Sample code on github:

► Subscribe :
Subscribe Kumar Programming to watch more tutorials:
/ @kyprogramming

► JAVASCRIPT :

► FULL STACK DEVELOPER :

► UNIT TESTING - MOCHA CHAI :

► NODE JS - COMPLETE PROJECT :

► ANGULAR :

Please SUBSCRIBE my channel and do not forgot to press the bell icon in order to get notification for all of my upcoming videos as well as please like and share.

#Mocha #chai #UnitTesting #TypeScrriptUnitTesting #TSUnitTesting #typescript #typescripttutorial #JSUnitTesting #programming #coding #nodejs #nodejstutorial #kumarprogramming #kyprogramming #stepbystep #learning #learning #Hooks
Рекомендации по теме
Комментарии
Автор

Hi. Executed same actions with you but getting "TypeError: Unknown file extension ".ts" for ...path/calculator.spec.ts
i have searched the error in google but recommended solutions causing other errors. Do you have any suggestion? Thx

mustafasdet
Автор

can you share git repository will be very helpful

edward