Articles by Tag #jest

Browse our collection of articles on various topics related to IT technologies. Dive in and explore something new!

How to setup Jest + RTL on Vite & React

Environment I'm using React, Vite, and TypeScript Prepare a environment npm...

Learn More 3 0Oct 27

🧩 A Complete Guide to React Testing: From Unit Tests to E2E, Snapshots, and Test Doubles

When developing with React, have you ever wondered: “Where should I even start with...

Learn More 1 0Oct 7

Mocking async params and searchParams in Next 16 using Jest and React Testing Library

In the previous chapters we looked at how params and searchParams work in Next 16. We then went over...

Learn More 0 0Nov 26

Setting up Jest, jest-dom, React Testing Library + linting for Next 16

Before we start with writing tests and mocks we first need to setup Jest and React Testing library....

Learn More 1 0Nov 26

Jest - Testing with React and React Testing Library: Useful APIs

Resources react-testing-library API Firing Events waitFor About Queries Document:...

Learn More 11 5May 21

Jest: Writing Composable Tests

When writing tests, you often need to spin up the same resources—databases, tables, services—across...

Learn More 0 0Sep 29

Comparing Javascript test frameworks: Jest vs Vitest vs Bun

Discover how switching to Bun’s built-in test runner can dramatically speed up your JavaScript and TypeScript test suites. In this post, I compare Jest, Vitest, and Bun using my Ilamy Calendar project, share real benchmark data, and provide a live demo so you can try it yourself.

Learn More 2 0Aug 12

Jest React Router v6: A standard pattern for mocking and testing useNavigate

Introduction React Router v6's useNavigate function allows you to easily navigate between...

Learn More 0 0Oct 1

Writing Testable Components in React

Testing in React is difficult when your components are doing too much. If you're wrestling with...

Learn More 3 0Jul 16

Mockando Endpoints com MSW em Testes com Jest e React Query

Quando usamos React Query em nossos projetos, temos uma série de funcionalidades poderosas ao nosso...

Learn More 1 0Sep 5

Testando Componentes com React Hook Form + Zod

A combinação entre React Hook Form (RHF) e Zod tem se tornado cada vez mais comum em projetos...

Learn More 6 0Sep 9

Using Jest and LLM assistance to test your real-time chat

In the previous article, we delved into creating a simple web server that serves static files, flat...

Learn More 2 0Nov 11

Testando debounce e throttle no React com Jest [setTimeout]

Implementar debounce ou throttle no React é comum em buscas, inputs e eventos de scroll. Mas testar...

Learn More 0 0Sep 12

A Developer's Guide to Jest: What, When, and How to Test

Jest is a delightful JavaScript Testing Framework with a focus on simplicity. It's one of the most...

Learn More 0 0Nov 28

Mocking Next 16 useParams, useSearchParams, usePathname and useRouter in Jest

In this chapter we write a test for a component that uses router related hooks: useParams,...

Learn More 0 0Nov 26

Guide - Setting Up Jest for Unit Testing in a TypeScript React Project

Recently, I got a chance to work on my first typescript project, and my first task was to set up unit...

Learn More 5 3Jan 10

Testing Angular HTTP Services using Jest

The tests check if the HTTP service works correctly by: Making fake API calls (GET/POST) Returning...

Learn More 5 2Apr 18

Using and Mocking Angular Environments with Jest

In production-grade Angular applications, API URLs and other environment-specific properties are...

Learn More 2 0Apr 21

Unit Testing with Jest – From Zero‑Config to Production Ready

Jest is a fast, delightful JavaScript testing framework created at Meta. It can run out‑of‑the‑box,...

Learn More 5 3May 20

Setup Jest (Ts) for a brand new React project

Alright, first things first — this post is for me. I’m just promoting a note from my Notion to a...

Learn More 1 2May 27

How to Set Up Jest in Angular 19 (Step-by-Step Guide)

1. Install the dependencies: npm install jest jest-preset-angular @types/jest...

Learn More 11 2Apr 17

[Boost]

✨It's 2025, But Jest🔧 is Still Rocking the Testing World 🚀 ...

Learn More 0 0Feb 9

Mocking with Jest and typescript - a cheatsheet

Jest is great at mocking imports in javascript/typescript, but I find it very hard to remember...

Learn More 6 0Dec 19 '24

How to create a test ecosystem

As a QA Engineer, I have developed a robust test ecosystem that ensures the reliability and...

Learn More 5 0Feb 28

Jest: A Delightful JavaScript Testing Framework

What is Jest? To quote the Jest Core Team, "Jest is a JavaScript testing framework...

Learn More 1 0Feb 10

How To Fix the import.meta.env Error in a Vite + Jest Setup

If you’ve worked with Vite for building a React (or other) application and used Jest for testing, you...

Learn More 4 1Mar 20

Testing Angular Components with Inputs and Outputs using Jest

io.component.ts import { Component, EventEmitter, Input, Output } from...

Learn More 1 0Apr 17

Testing Angular with Jest

Unit tests verify small, isolated parts of your code like components, services, and pipes by testing...

Learn More 4 0Apr 17

🛠️ Writing Reliable Code from the Ground Up !

The Coding Nightmare - We’ve all Experienced 😵 Imagine spending hours crafting what you...

Learn More 4 2Dec 19 '24

From Manual API Testing to AI-Powered Automation: My Journey with Keploy Chrome Extension

By Anurag Dey AI/ML Enthusiast & Developer Introduction Hey everyone! I'm Anurag Dey,...

Learn More 2 0Jun 28