Unit Testing For Typescript & Nodejs Developers With Jest
Last updated 3/2023
MP4 | Video: h264, 1280x720 | Audio: AAC, 44.1 KHz
Language: English | Size: 5.63 GB | Duration: 10h 56m
Last updated 3/2023
MP4 | Video: h264, 1280x720 | Audio: AAC, 44.1 KHz
Language: English | Size: 5.63 GB | Duration: 10h 56m
Master unit testing with NodeJs, Typescript, Jest and React. Write top quality Typescript and NodeJs software with Jest
What you'll learn
Basics of TypeScript unit testing with Jest
Integration tests with TypeScript
Test Driven Development (TDD) with Jest
Unit testing React with TypeScript and Jest
Write tests for error handling
Jest - the basics: hooks, assertions, matchers
Jest - the advanced parts: aliases, custom matchers, snapshots
Advanced unit testing techniques using Jest
CI/CD pipeline using Github Actions
Requirements
Basic knowledge of Typescript
Basic knowledge of NodeJs
Basic knowledge of React (for the React part)
Description
***1.03.2023 - Complete remaster of the course with the latest Jest and TypeScript features***A must have skill for senior developersTypescript is getting more and more popularity and it is a required skill for many IT jobs. It's key feature is type safety, thus preventing bugs. But yes another skill is very important for any programming job: unit testing. Combining these two techniques will result in solid, robust and bug free code.This course will go beyond the basics of unit testing and teach you all you need to write real world, complex testing suites for NodeJs and Typescript applications using the most popular JavaScript testing library: Jest.Using Jest as an unit testing library provides many advantages:Unitary unit testing library for running and structuring testsExtensive mocking, stubbing and spying capabilitiesPowerful matchers to create simple to read testsJest ships as one unitary NPM packageJest is the default choice for TypeScript React projectsWhy unit testing NodeJs apps?Unit testing usually adds a lot to a code base, two or tree times in some cases. This also means that a lot of time needs to be invested in writing and setting up tests. But all this effort pays of: time, effort and headache of fixing bugs can be used for more fun activities.What you will get from this course:setup NodeJs and Typescript projects from scratch implement unit testing with Jestlearn about unit testing configuration with parameters like: roots, transform, testRegex or verboselearn about Jest test suites structure: describe with value, test, descriptions, hooks like beforeEachbasic and advanced assertions, comparing primitive types, objects or even errorsinstantiating test double objects like mocks, stubs, spies or fakes.write complex mock objects which can be used with "strange" JavaScript libraries.inject doubles: directly inside the constructor, over the module or even using the objects prototypelearn about deep mocks and matchers to make your tests even betterintegration tests for a NodeJs server applicationConditionally and asynchronously skip testsDedicated sections on unit testing mocks:Jest mocks, spiesHow to use stubsLondon/Chicago testing approach, with the advantages and disadvantages of each oneIn this course you will learn how to use Test Driven Development (TDD):Analyze the advantages of TDDHands-on practice with a great coding kata: password checkerSeparate section on Jest Integration tests for Rest APIs:learn how to setup integration testslearn the difference between integration tests and unit testswrite integration tests for a Rest API with JestDedicated section on Jest React unit testing:How to test for React components with JestHow to test React async codeHow to debug React Typescript appsThe examples used in the course follow very high coding guidelines for Typescript, NodeJs and React. Async/await syntax is used for clear and concise code, and of course, you will see how to test asynchronous code, on server, but also in the front end.Course advantages:Respect for your time: most of the time of the instructor typing is cut off, the course is focused on unit tests and Jest explanationsConcise: learn only what you need, no fillers to make the course falsely more appealingExperienced and programming active instructor: a great teacher never looses touch with the industry. This is especially true for software development, where the industry is so dynamic. This helps the instructor stay up to date with the best coding guidelines and present you the challenging parts, not the "hello world"Organized course structure: six parts, progressive approach, consistent contentCode changes in each lecture on Git with code diffs: this will help you get an concise overview of the lecture and correct in case you missed somethingBig font, dark background, fullHD content, this way it is readable even on a small screen or even tablet.Lifetime accessCertificate of completion to present to your current or prospective employerDo you want your Typescript or NodeJs code to have the best quality, and your project to be safe?Enroll and start writing your tests in 10 minutes!
Who this course is for:
NodeJs or Typescript developpers willing to deeply understand unit and integration testing,React developers who want to test their apps,Developers who want to write robust and clean code,Developers who want to learn Jest