Kent C. Dodds – Testing JavaScript

10
47
Kent C. Dodds - Testing JavaScript

Kent C. Dodds – Testing JavaScript Free Download. Learn a professional JavaScript testing method and always deliver high quality software like a professional.

Kent C. Dodds – Testing JavaScript Description

Learn a smart and efficient way to test any JavaScript application. Why test your JavaScript? Every time a bug is discovered, your app’s user experience is bursting at the seams. Bugs are bad. Who will be blamed? You, the developer! Before each deployment, your code must be tested to ensure full working functionality. Professionals write code that works, and I mean code that is tested.

Brendon Burchard – High Performance Habit Builder Series

After this course, you will:

  • provide robust features that work for users as expected
  • choose the best tools for the job
  • communicate more effectively with colleagues
  • a more confident, professional JavaScript developer

Learn a professional JavaScript testing method and always deliver high-quality software like a professional.

What’s in JavaScript testing?

7 modules with solid testing experience

1. JavaScript Testing Basics

Do you know what a testing framework does? Do you know what makes a testing framework different from a testing library? The best way to use a tool effectively is to understand how it works. And the best way to understand how the tool works is to do it yourself!

In this short course, we will learn how frameworks and libraries work by creating our own, simpler version of each.

2. Static Analysis Testing JavaScript Applications

There are many ways your application can break. One of the most common sources of errors is associated with typos and incorrect types. Passing a string to a function that expects a number or ends up in a common typo in a boolean expression are silly mistakes that should never be made, but it happens all the time.

We could write a complete suite of automated tests for our entire codebase so that such bugs never occur, but that would probably be too much work and slow development. Luckily for us, there are tools we can use to cater to a whole category of testing with great developer experience.

3. Basics of JavaScript Mocking

When doing unit tests, you don’t want to actually make network requests or charge real credit cards. It can … get expensive … So instead of running your code exactly as it will in production, you can change some of your JavaScript modules and functions during tests and improve the speed of your tests.

There are some great libraries and abstractions for mocking your JavaScript modules during your tests. Jest has great capabilities for inline functions as well as entire modules. To really understand how things work, let’s implement some of these features ourselves.

4. Configuring Jest for Testing JavaScript Applications

Jest is a full-featured testing framework that is second to none. It is surprisingly simple and flexible at the same time. For simple use cases, you often don’t need to configure, install, and use built-in coverage and view support.

However, in a real application, you will often need specific needs for your application, especially when testing browser-based applications. You will need to handle Webpack loaders, dynamic imports, and custom module resolution, which Node.js does not support.

In this course, we’ll look at how you can optimize your Jest configuration to make real-world JavaScript application testing amazing. We’ll cover what has already been mentioned in addition to Babel support, code coverage, how to make View mode even more useful, and how to run test suites with completely different configurations.

5. Installing, configuring Cypress for JavaScript web applications

Cypress is an incredibly powerful web testing tool. It is capable of testing any web application. Its architecture places it in a cut above similar end-to-end testing tools. His experience is best in class. And because Cypress runs your tests in the same context as the rest of your application, you can get the speed, reliability, and debuggability that are just a distant dream with similar tools. Trick? no. Cypress is exceptional.

In this course, we’ll look at how you can install, configure Cypress to test modern JavaScript web applications in the real world.

6. Test React components with Jest and react-testing-library

If you want to deliver your applications with confidence, you need a great suite of automated tests to absolutely make sure that nothing breaks when the changes reach your users. To gain this confidence, your tests must realistically simulate how users actually use your React components.

In this course, we’ll write a series of rendering techniques and run a series of tests to see how we can get the confidence we’re looking for without giving up on maintainability or test speed.

7. Use the dom-testing library to test any JS framework

The person using your application components need not know or care what frameworks you used to write your application. Guess what: Same as your tests.

This course explores the dom-testing library using 11 different frameworks, from React to Svelte. You will gain practical skills in writing tests for any JavaScript framework.

8. NEW Testing Node.js Backends (lesson 115-154)

The backend contains so much of our application’s business logic, which is often used to support multiple clients (web, mobile, and other native platforms). This logic is critical to getting it right, and rolling out a revolutionary change can have devastating consequences for your company’s goals (not to mention the results). Increasing your “deployment confidence” is critical, and automated testing is the best way to do this.

As Node.js continues to grow in use around the world, it becomes increasingly important to learn how to test this critical code in a way that improves developer speed and confidence. In this workshop, we use the Express.js example and focus on the patterns and techniques you need to learn so that you can apply what you have learned to test your code written in any Node.js web environment.

  • Testing pure functions
  • Middleware testing
  • Testing controllers
  • Testing API routes
  • Mocking third party dependencies

Kent C. Dodds – Testing JavaScript Free Download

Sendcm (recommended)

Onedrive

Content From: https://testingjavascript.com/

10 COMMENTS

LEAVE A REPLY

Please enter your comment!
Please enter your name here