DEV Community

# jest

Posts

👋 Sign in for the ability to sort posts by relevant, latest, or top.
The only 3 steps you need to mock an API call in Jest

The only 3 steps you need to mock an API call in Jest

419
Comments 63
6 min read
Testing Node.js + Mongoose with an in-memory database

Testing Node.js + Mongoose with an in-memory database

383
Comments 39
4 min read
Make Your Jest Tests up to 20% Faster by Changing a Single Setting

Make Your Jest Tests up to 20% Faster by Changing a Single Setting

189
Comments 15
5 min read
Testing of a Custom React Hook for Fetching Data with Axios

Testing of a Custom React Hook for Fetching Data with Axios

102
Comments 4
6 min read
Testing with Jest & async/await

Testing with Jest & async/await

87
Comments 5
3 min read
Vue component TDD with Jest and Storybook

Vue component TDD with Jest and Storybook

81
Comments 4
14 min read
Testing JavaScript with Jest - Unit Testing

Testing JavaScript with Jest - Unit Testing

76
Comments 9
11 min read
Data-driven Unit Tests with Jest

Data-driven Unit Tests with Jest

71
Comments 3
3 min read
Why Jest is not for me

Why Jest is not for me

67
Comments 4
6 min read
How to test Svelte components

How to test Svelte components

65
Comments 4
3 min read
Node.js (Express) with TypeScript, Eslint, Jest, Prettier and Husky - Part 1

Node.js (Express) with TypeScript, Eslint, Jest, Prettier and Husky - Part 1

63
Comments 1
4 min read
A Guide for every UI developer with an aversion to Unit Tests.

A Guide for every UI developer with an aversion to Unit Tests.

56
Comments 1
10 min read
How To Test React Hooks Using Jest And React Testing Library

How To Test React Hooks Using Jest And React Testing Library

52
Comments
1 min read
Mocking ES6 class methods with Jest!

Mocking ES6 class methods with Jest!

50
Comments 11
3 min read
Testing Svelte components with Jest

Testing Svelte components with Jest

50
Comments 4
3 min read
Mocking AWS with Jest (and TypeScript)

Mocking AWS with Jest (and TypeScript)

49
Comments 7
13 min read
How to mock an imported Typescript class with Jest

How to mock an imported Typescript class with Jest

46
Comments 13
3 min read
Your front door to testing with Jest

Your front door to testing with Jest

46
Comments 2
4 min read
Angular 11 - Setting up Jest

Angular 11 - Setting up Jest

44
Comments 15
1 min read
Setting up a Next.js Application with TypeScript, JIT Tailwind CSS and Jest/react-testing-library

Setting up a Next.js Application with TypeScript, JIT Tailwind CSS and Jest/react-testing-library

42
Comments 2
9 min read
Node.js (Express) with TypeScript, Eslint, Jest, Prettier and Husky - Part 3

Node.js (Express) with TypeScript, Eslint, Jest, Prettier and Husky - Part 3

41
Comments 3
5 min read
How to configure Jest on a Next.js project

How to configure Jest on a Next.js project

40
Comments 3
1 min read
How to Setup Jest Testing In Nuxt Js Project

How to Setup Jest Testing In Nuxt Js Project

39
Comments 6
4 min read
Converting your Unit and End-To-End Test Suites from Mocha, Chai, and Sinon to Jest in Nodejs.

Converting your Unit and End-To-End Test Suites from Mocha, Chai, and Sinon to Jest in Nodejs.

39
Comments
14 min read
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.

39
Comments 26
4 min read
Property Based Testing With Typescript

Property Based Testing With Typescript

37
Comments 2
10 min read
How I Fixed The Unexpected Token Error In Jest

How I Fixed The Unexpected Token Error In Jest

37
Comments 19
5 min read
How to mock environment variables with Jest

How to mock environment variables with Jest

36
Comments 6
1 min read
Mocking redux useSelector-hook

Mocking redux useSelector-hook

36
Comments 25
3 min read
A bit about Jest mocks

A bit about Jest mocks

34
Comments
7 min read
Testing Database Interactions with Jest

Testing Database Interactions with Jest

33
Comments 2
6 min read
Writing efficient tests with Angular

Writing efficient tests with Angular

31
Comments 2
4 min read
Jest code coverage report explained

Jest code coverage report explained

31
Comments 4
2 min read
Testing async stuff in React components with Jest and react-testing-library

Testing async stuff in React components with Jest and react-testing-library

30
Comments 1
7 min read
Use test.todo() when writing Jest tests.

Use test.todo() when writing Jest tests.

29
Comments 4
1 min read
BDD automated-testing con Gherkin y Jest en Node.js 🦄

BDD automated-testing con Gherkin y Jest en Node.js 🦄

29
Comments 2
8 min read
Please don't mock SWR, Fetch or Axios in your unit/integration tests

Please don't mock SWR, Fetch or Axios in your unit/integration tests

28
Comments 3
1 min read
Jest Best Practice 1: Use eslint-plugin-jest

Jest Best Practice 1: Use eslint-plugin-jest

28
Comments 1
3 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
TDD em Nodejs : conhecendo o Jest

TDD em Nodejs : conhecendo o Jest

27
Comments
6 min read
How to test a TypeScript Express API with Jest (for Dummies... like me)

How to test a TypeScript Express API with Jest (for Dummies... like me)

27
Comments 7
4 min read
Using the NestJS CLI GraphQL Plugin for E2E Testing

Using the NestJS CLI GraphQL Plugin for E2E Testing

27
Comments 2
3 min read
Level-Up Your React Game with Testing

Level-Up Your React Game with Testing

27
Comments 2
4 min read
How to configure import aliases in Vite, TypeScript and Jest

How to configure import aliases in Vite, TypeScript and Jest

26
Comments 2
1 min read
Easily create mock data for unit tests 🧪

Easily create mock data for unit tests 🧪

26
Comments 6
4 min read
Why you should never use .toBe in Jest/Vitest

Why you should never use .toBe in Jest/Vitest

25
Comments 4
4 min read
Jest Snapshot Testing for React Components is useless? Is it slowly dying? 🧐🤔😐

Jest Snapshot Testing for React Components is useless? Is it slowly dying? 🧐🤔😐

25
Comments 8
4 min read
Angular com Jest

Angular com Jest

24
Comments 3
3 min read
Creating a project template using Laravel, Vue 3, and Tailwind - Part 2

Creating a project template using Laravel, Vue 3, and Tailwind - Part 2

24
Comments 5
6 min read
How to test React Hooks?

How to test React Hooks?

24
Comments
3 min read
Reducing Jest Memory Usage

Reducing Jest Memory Usage

23
Comments 2
2 min read
Understanding the shallow function in Enzyme

Understanding the shallow function in Enzyme

23
Comments 3
4 min read
TDD in React using Jest — beginner tutorial

TDD in React using Jest — beginner tutorial

23
Comments
12 min read
Awesome Jest Tip: Coverage Report

Awesome Jest Tip: Coverage Report

22
Comments
3 min read
Test Driven Development with Svelte - Setup

Test Driven Development with Svelte - Setup

22
Comments
4 min read
Nodejs Code Evaluation Using Jest e SonarQube + Docker

Nodejs Code Evaluation Using Jest e SonarQube + Docker

22
Comments 1
3 min read
Elevating Your Testing Skills with Proven Best Practices

Elevating Your Testing Skills with Proven Best Practices

22
Comments
2 min read
Jest mocking strategies

Jest mocking strategies

22
Comments
13 min read
How to mock Next router with Jest

How to mock Next router with Jest

21
Comments 3
8 min read
Testing React - Setup, Unit, Integration and E2E using Jest and Cypress (feat. GraphQL)

Testing React - Setup, Unit, Integration and E2E using Jest and Cypress (feat. GraphQL)

21
Comments
4 min read
loading...