* Cantinho Satkeys

Refresh History
  • mario: ola boa tarde
    13 de Fevereiro de 2026, 17:16
  • JPratas: try65hytr Pessoal  4tj97u<z 2dgh8i k7y8j0 classic
    13 de Fevereiro de 2026, 05:56
  • bruno mirandela: boa noite todos boa semana
    10 de Fevereiro de 2026, 21:42
  • FELISCUNHA: cereal killa  Boa noite amigo , eu percebi , aquele abraço  101041
    10 de Fevereiro de 2026, 20:48
  • cereal killa: boas feliscunha  49E09B4F, t5r76 so dava mais jeito  p0i8l p0i8l
    10 de Fevereiro de 2026, 19:04
  • FELISCUNHA: cereal killa   Já mudaste de clube ???   535reqef34
    10 de Fevereiro de 2026, 11:41
  • FELISCUNHA: Bom dia pessoal  49E09B4F
    10 de Fevereiro de 2026, 11:39
  • cereal killa: try65hytr raio da chuva nao acaba  3w45r  9Scp0 9Scp0
    09 de Fevereiro de 2026, 20:18
  • worrierblack: 4tj97u<z
    09 de Fevereiro de 2026, 03:09
  • worrierblack: hello
    09 de Fevereiro de 2026, 03:09
  • worrierblack: hello
    09 de Fevereiro de 2026, 03:09
  • FELISCUNHA: Votos de um santo domingo para todo o auditório  4tj97u<z
    08 de Fevereiro de 2026, 11:39
  • j.s.: tenham um bom fim de semana,   49E09B4F 49E09B4F
    07 de Fevereiro de 2026, 14:31
  • j.s.: dgtgtr a todos  49E09B4F
    07 de Fevereiro de 2026, 14:30
  • FELISCUNHA: ghyt74  pessoall 49E09B4F
    06 de Fevereiro de 2026, 12:00
  • JPratas: try65hytr A Todos  4tj97u<z  2dgh8i k7y8j0 classic
    06 de Fevereiro de 2026, 05:17
  • joca34: ola amigos alguem tem este cd Ti Maria da Peida -  Mãe negra
    05 de Fevereiro de 2026, 16:09
  • FELISCUNHA: ghyt74  pessoal   49E09B4F
    03 de Fevereiro de 2026, 11:46
  • Robi80g: CIAO A TUTTI
    03 de Fevereiro de 2026, 10:53
  • Robi80g: THE SWAP FILM WALT DISNEY
    03 de Fevereiro de 2026, 10:50

Autor Tópico: Typing the Test Suite  (Lida 254 vezes)

0 Membros e 1 Visitante estão a ver este tópico.

Offline mitsumi

  • Sub-Administrador
  • ****
  • Mensagens: 129146
  • Karma: +0/-0
Typing the Test Suite
« em: 28 de Maio de 2021, 11:54 »

MP4 | Video: h264, 1280x720 | Audio: AAC, 44.1 KHz, 2 Ch
Genre: eLearning | Language: English + srt | Duration: 53 lectures (1h 53m) | Size: 698.8 MB
A brisk course on writing tests with Jest and TypeScript.

What you'll learn:
Writing tests with Jest and TypeScript
Testing Nodejs and Express
Testing React with Testing Library
Writing custom matchers and mock modules

Requirements
JavaScript and basic TypeScript knowledge
Basic React and Nodejs knowledge

Description
What is this?

A quick course for intermediate level developers looking to get started with testing using Jest and TypeScript.

The first section focuses on using Jest with JavaScript and a bit of TDD. The rest of the course uses TypeScript, Jest, with either Node.js or React. It's 2 hours long and full of content.

We move fast, break things, then write tests to make sure they don't break again. The technologies used are:

Jest (v26)

TypeScript (v4)

React.js (v17)

React Testing Library (v11)

Who is this for?

Developers with some JavaScript/TypeScript, Node.js and React experience who'd like to learn to write tests.

Highly motivated beginner who likes to jump in the deep end.

Required knowledge

I assume students have basic JavaScript knowledge.

The Node.js section assumes basic Node.js/Express knowledge, and the React section assumes some React knowledge. The testing concepts are largely unrelated to those specific frameworks, so as long as you have some programming experience, you should be fine.

Curriculum

1.0 Introduction

Get everything setup and starting writing some tests with Jest.

1.1 Installation

1.2 Your First Test

1.3 Adding an Assertion

1.4 Describing and Grouping Tests

1.5 Feedback Loop with Watch Mode

1.6 It.each for Concise Tests

2.0 Project: String Calculator

Put the skills learned in section one into practice by completing the String Calculator Kata.

2.1 The First Test

2.2 Handling Whitespace

2.3 Throwing an Error

2.4 Testing the Error

2.5 Validating the Test Suite with a Functional Refactor

2.6 Completing the Functional Refactor

3.0 Matcher Madness

Do a deep dive into the various matchers Jest provides, from toBe and toEqual to the more exotic resolves and rejects matchers.

3.1 toBe

3.2 toEqual, not

3.3 toHaveProperty

3.4 Resolves matcher for Promises

3.5 Rejects matcher for Errors

3.6 toHaveBeenCalled and Mock Functions

3.7 Waiting with the Done Callback

4.0 TypeScript, Node.js and Jest

We introduce TypeScript and Jest by developing and testing a Node.js API. Note: This section assumes basic knowledge of Node.js and Express.

4.1 TypeScript and Jest with ts-jest

4.2 Express Setup

4.3 The Jest Lifecylce: Before and After Hooks

4.4 Better Types

4.5 Adding JWT and a Refactor

4.6 Authorization Header

4.7 Testing for Success

4.8 Testing for Failure

4.9 Alternative Failed Assertion Syntax

4.10 Summary

5.0 TypeScript, React and Testing in a DOM Environment

Build a toy React app and see how to use TypeScript and Jest for DOM based testing with Testing Library. Note: this section assumes basisc knowledge of React.

5.1 Create React App and TypeScript

5.2 Rendering with Testing Library

5.3 Testing Library Assertions - getByText

5.4 useState and Asynchronous Assertions

5.5 Fetchign Data with useEffect

5.6 More Async Behavior with findAll

5.7 Mocking Axios with Jest Mocks

5.8 Toggling Todos

6.0 Jest Tips and Tricks

Learn some of Jest's more advanced features. Write your own custom matchers with TypeScript and write more robust, reuseable and (mostly) type-safe mocks.

6.1 Section Overview

6.2 Custom Matcher API

6.3 Implementing the Matcher

6.4 Typing the Matcher

6.5 Setting up for Module Mocking

6.6 Inline Mocks Review

6.7 The Problem with Inline Mocks

6.8 Manual Mocks

6.9 Default Module Data

6.10 Typing the Mock Module

6.11 Improving the Spec Types

6.12 Jest Spies

6.13 What Next? More Learning Resources

Who this course is for
Intermediate developers looking to brush up on testing


Download link:
Só visivel para registados e com resposta ao tópico.

Only visible to registered and with a reply to the topic.

Links are Interchangeable - No Password - Single Extraction