Articles by Tag #jest

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

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

Testing your React components might sound intimidating, but with Jest, it’s actually fun! 🚀 In the...

Learn More 18 7Feb 9

Are you writing test for the first time? This might help.

It can be a daunting task to write tests when you do not even know what to test for or why you are...

Learn More 12 2Jul 6 '24

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

Mastering Jest in Next.js: A Complete Guide for App Router and TypeScript 🚀

Dive into the world of modern web testing with this comprehensive guide on integrating Jest into your...

Learn More 7 1Aug 23 '24

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 6 2Apr 17

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

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

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

Estratégias para escrever código com maior testabilidade - uma análise imperativa

Código com maior testabilidade Observações Iniciais A melhora na escrita de...

Learn More 5 0Aug 31 '24

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

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

Comparing Jest, React Testing Library, and Playwright: Testing Approaches for React Applications

1. Jest Purpose: Jest is a testing framework for JavaScript, commonly used for unit and integration...

Learn More 4 1Oct 28 '24

🛠️ 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

AI as a Coding Tool: A Mixed Experience

Even though AI has been a hot topic in recent times, I had been reluctant to use it in my work as I...

Learn More 4 0Mar 30

Strategies for Writing More Testable Code - An Imperative Approach

More testable code Initial Observations Improvement in test writing and code...

Learn More 4 0Sep 1 '24

The Power of Jest and React Native Testing Library Combined

1. Introduction to Jest and React Native Testing Library Jest is a JavaScript testing...

Learn More 4 0Jul 24 '24

How to Test Functions That Return Functions in TypeScript with Jest

In one of my recent projects, I had a function that, given an input, generates and returns a new...

Learn More 4 0Sep 15 '24

Mock functions in individual tests using Jest

Mock functions in individual Jest tests & fallback to the original implementation if no mock was provided.

Learn More 4 0Aug 4 '24

Using and Mocking Angular Environments with Jest

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

Learn More 4 0Apr 21

3. How to setup Jest in a Next 15 project (+ eslint for testing)

At the time of writing the first 2 parts in this series, I was using Next 15.0.1. That version still...

Learn More 3 1Dec 21 '24

How to Run Jest Unit Tests in a Typescript Project

How To Run Jest Unit Tests In a Typescript Project Follow these steps to set up Jest unit...

Learn More 3 0Aug 9 '24

Solving the Jest Native Module Error in a React Native Expo Project

While working on a React Native Expo project, I encountered a perplexing error message during my...

Learn More 3 0Jul 28 '24

Mocking Network Requests Made Easy: Integrating Jest and MSW

Writing unit tests that involve mocking or stubbing API calls can feel overwhelming—I’ve been there...

Learn More 3 0Sep 7 '24

Testing Callback Functions with Jest

When writing unit tests, you may encounter a scenario where you need to test a function that is...

Learn More 3 0Jun 28 '24

Speed Up Your Tests with Jest and Vitest

Introduction If you've ever created automated tests for your project, you’re probably...

Learn More 2 0Oct 2 '24

Writing integration tests with jest and puppeteer

For quite some time already I'm working on a personal project every friday which contains a part that...

Learn More 2 0Aug 16 '24

🧪 Setup Jest with (Webpack, Vite)

"You should write tests before you write the code."
⏤ creator of TDD Why Jest? Jest is...

Learn More 2 0Oct 1 '24

Testing Angular simple Components using Jest

simple-component.ts @Component({ selector: 'simple-component', template: ` <button...

Learn More 2 0Apr 17

Introduction to Jest: Unit Testing, Mocking, and Asynchronous Code

A description of the post

Learn More 2 1Oct 30 '24

Testing a GraphQL Application with Jest and SuperTest

In this blog post, we'll explore the challenges and solutions involved in testing a GraphQL API using...

Learn More 2 0Jan 13