DEV Community

# jest

Posts

👋 Sign in for the ability to sort posts by relevant, latest, or top.
Installing Jest for Testing in Your Vite-React TypeScript Project. A Step-by-Step Guide.

Installing Jest for Testing in Your Vite-React TypeScript Project. A Step-by-Step Guide.

38
Comments 26
4 min read
Writing Integration Tests that Run Inside a Unit-testing Framework like Jest

Writing Integration Tests that Run Inside a Unit-testing Framework like Jest

27
Comments 7
5 min read
Easily create mock data for unit tests 🧪

Easily create mock data for unit tests 🧪

26
Comments 6
4 min read
Elevating Your Testing Skills with Proven Best Practices

Elevating Your Testing Skills with Proven Best Practices

22
Comments
2 min read
Mastering Angular Unit Testing: Best Practices and Tools

Mastering Angular Unit Testing: Best Practices and Tools

14
Comments 2
9 min read
How to mock useSearchParams() and useRouter() with Jest in Next 13 (next/navigation)

How to mock useSearchParams() and useRouter() with Jest in Next 13 (next/navigation)

13
Comments 3
7 min read
Dissecting the hell that is Jest setup with ESM and Typescript

Dissecting the hell that is Jest setup with ESM and Typescript

13
Comments 2
5 min read
Create your own NPM package using TypeScript, Prettier, Eslint and Jest

Create your own NPM package using TypeScript, Prettier, Eslint and Jest

11
Comments
6 min read
How to test an async function to throw an exception in Jest

How to test an async function to throw an exception in Jest

10
Comments 1
2 min read
Mock modules properly with Jest and Typescript

Mock modules properly with Jest and Typescript

10
Comments
2 min read
Vitest vs Jest benchmarks on a 5 year old real work SPA

Vitest vs Jest benchmarks on a 5 year old real work SPA

10
Comments 1
5 min read
Setup Jest, Babel e testing library para testes unitários em React

Setup Jest, Babel e testing library para testes unitários em React

7
Comments
3 min read
Effortless Project Discovery: Automating Jest Multi-Project Runs in Monorepos

Effortless Project Discovery: Automating Jest Multi-Project Runs in Monorepos

7
Comments
2 min read
Mastering Jest: A Complete Guide to Testing Next.js Applications Part-2

Mastering Jest: A Complete Guide to Testing Next.js Applications Part-2

6
Comments 1
10 min read
Set up a Node.js project + TypeScript + Jest using ES Modules

Set up a Node.js project + TypeScript + Jest using ES Modules

6
Comments
2 min read
Introduction to Testing in JavaScript using Jest

Introduction to Testing in JavaScript using Jest

6
Comments 4
3 min read
NestJS: Mocking Databases for Efficient Tests

NestJS: Mocking Databases for Efficient Tests

6
Comments
6 min read
A Practical Guide to Testing React Applications (Unit Tests)

A Practical Guide to Testing React Applications (Unit Tests)

6
Comments 2
9 min read
Mock imported modules in Jest

Mock imported modules in Jest

6
Comments
2 min read
Make a Factory: Creating Tests and Stories with Factory Functions in TypeScript and React

Make a Factory: Creating Tests and Stories with Factory Functions in TypeScript and React

6
Comments
4 min read
Quando Escrever Testes de Unidade?💡

Quando Escrever Testes de Unidade?💡

5
Comments
4 min read
Running react native testing 3x faster

Running react native testing 3x faster

5
Comments
1 min read
Using searchParams, useSearchParams and useRouter in Next 13

Using searchParams, useSearchParams and useRouter in Next 13

5
Comments 1
6 min read
Mastering Jest: A Complete Guide to Testing Next.js Applications Part-1

Mastering Jest: A Complete Guide to Testing Next.js Applications Part-1

5
Comments 1
5 min read
Implementing and Unit testing Graphql in React using msw

Implementing and Unit testing Graphql in React using msw

5
Comments 2
7 min read
Testing browser's clipboard with jest

Testing browser's clipboard with jest

5
Comments
6 min read
Jest errors with solutions

Jest errors with solutions

5
Comments
4 min read
Electron Testing Best Practices: Testing Main and Renderer Code with Jest

Electron Testing Best Practices: Testing Main and Renderer Code with Jest

4
Comments
2 min read
Test? When to test?

Test? When to test?

4
Comments
2 min read
Testing XState FSM using Jest

Testing XState FSM using Jest

4
Comments
16 min read
React Testing library setup with vite

React Testing library setup with vite

4
Comments 3
1 min read
React with vite + jest

React with vite + jest

3
Comments 5
3 min read
Implementando Testes com Jest em Projetos React + TypeScript

Implementando Testes com Jest em Projetos React + TypeScript

3
Comments
4 min read
Setup Jest, Babel and testing library for unit testing in React

Setup Jest, Babel and testing library for unit testing in React

3
Comments
3 min read
Setting up test files in React with Jest

Setting up test files in React with Jest

3
Comments 2
5 min read
Unit Testing in NodeJS with Express & TypeScript || Part One: Environment Setup

Unit Testing in NodeJS with Express & TypeScript || Part One: Environment Setup

3
Comments
7 min read
Unit Testing in Node.js and TypeScript: A Comprehensive Guide with Jest Integration

Unit Testing in Node.js and TypeScript: A Comprehensive Guide with Jest Integration

3
Comments
20 min read
Supercharge Your Testing Workflow: Creating Unit and E2E Tests 10x Faster with ChatGPT-3 Inside NestJS

Supercharge Your Testing Workflow: Creating Unit and E2E Tests 10x Faster with ChatGPT-3 Inside NestJS

3
Comments
3 min read
How to Mock Bugsnag in jest.setup.js

How to Mock Bugsnag in jest.setup.js

2
Comments
1 min read
How to Apply SOLID with Testing JS/TS Class Methods

How to Apply SOLID with Testing JS/TS Class Methods

2
Comments
4 min read
How to test Angular components using Jest nice and easy

How to test Angular components using Jest nice and easy

2
Comments 4
9 min read
Introduction to Jest

Introduction to Jest

2
Comments
3 min read
Handle Variables and Dynamic Values with `jest.fn()`

Handle Variables and Dynamic Values with `jest.fn()`

2
Comments
2 min read
Jest - Tackling Performance Issues

Jest - Tackling Performance Issues

2
Comments
11 min read
Use jest.fakeTimers correctly

Use jest.fakeTimers correctly

2
Comments
1 min read
You should repeat yourself when writing tests

You should repeat yourself when writing tests

2
Comments
3 min read
Is this how you test Node cron jobs?

Is this how you test Node cron jobs?

2
Comments
1 min read
Using Jest to bulletproof a TypeScript Class - Part 2

Using Jest to bulletproof a TypeScript Class - Part 2

2
Comments
3 min read
Creating and Testing Apollo Client Links

Creating and Testing Apollo Client Links

2
Comments
5 min read
Using Jest for the first time? Here's all you need to know

Using Jest for the first time? Here's all you need to know

2
Comments
4 min read
Porque usar o "TDD" no seu dia-dia ?

Porque usar o "TDD" no seu dia-dia ?

2
Comments
2 min read
Seamless Integration: Jest with Angular in 8 Easy Steps

Seamless Integration: Jest with Angular in 8 Easy Steps

1
Comments
2 min read
.toBe(true) or .toBeTruthy()

.toBe(true) or .toBeTruthy()

1
Comments
1 min read
Unit Testing with Jest and Rewire in JavaScript

Unit Testing with Jest and Rewire in JavaScript

1
Comments
2 min read
1st Episode: Testing React components, a series.

1st Episode: Testing React components, a series.

1
Comments
3 min read
I Learned Promise Chaining (and more!) from Error Testing my SVG Logo Generator.

I Learned Promise Chaining (and more!) from Error Testing my SVG Logo Generator.

1
Comments 6
3 min read
Unit Testing in NodeJS with Express, TypeScript, Jest and Supertest || Part Three: Writing Unit Tests || A Comprehensive Guide

Unit Testing in NodeJS with Express, TypeScript, Jest and Supertest || Part Three: Writing Unit Tests || A Comprehensive Guide

1
Comments
38 min read
React testing with Jest

React testing with Jest

1
Comments
3 min read
Create a react app using Vite - Part 3

Create a react app using Vite - Part 3

1
Comments
3 min read
Improving Code Coverage Reporting in Monorepos

Improving Code Coverage Reporting in Monorepos

1
Comments
6 min read
loading...