About 50 results
Open links in new tab
  1. Testing JavaScript

    In this workshop we use an Express.js example and focus on the patterns and practices that you need to learn so you can apply what you learn to test your code written in any Node.js web framework.

  2. Use DOM Testing Library to test any JS framework

    This course explores the dom-testing-library using 11 different frameworks, from React to Svelte. You’ll get hands-on experience writing tests for any JavaScript framework, giving you the confidence you …

  3. Interact Directly with the Database | Testing JavaScript

    Often in integration tests you’ll have situations where you are over testing. Sometimes that’s acceptable, but you can speed up your tests by getting your application into a testable state a little quicker.

  4. Intro to Use DOM Testing Library to test any JS framework

    I mostly just want to show you that it is totally possible to use DOM testing library with anything that renders to the DOM. Let's take a look at this project really quick.

  5. Analyze Jest Code Coverage Reports | Testing JavaScript

    00:26 This is what the file looks like in your source, but Jest doesn't run this file when it's running your test under coverage. It actually transforms this file using Babel into something that looks more like this.

  6. Test Pure Functions Overview | Testing JavaScript

    Of all things you can test, the easiest thing you can test is a pure function because they require no setup or teardown. In this exercise, we’ll explore testing a pure function called isPasswordAllowed.

  7. Test Authentication API Routes Overview | Testing JavaScript

    Let’s explore how our app is started so we can start it in our test environment and I’ll show you around the codebase so you can navigate around while you test things out.

  8. Throw an Error with a Simple Test in JavaScript

    In this lesson, we’ll get the most fundamental understanding of what an automated test is in JavaScript. A test is code that throws an error when the actual result of something does not match the expected …

  9. Use a Test Object Factory utils/generate | Testing JavaScript

    If we go to generate, which you can find in test/utils/generate, then you'll find we have a whole bunch of test object factories in here. We're using faker to generate some of our data, but in our case, we're …

  10. Test User Registration with Cypress | Testing JavaScript

    Let’s write a test to fill out our registration form. Because we’ll be running this against a live backend, we need to generate the user’s information to avoid re-runs from trying to create new users that already …