Series

Jest Made Easy — Expense Tracker Edition

14 posts in this series.

Post 1 / 15 • 3 min read

What is Testing? And Why Do We Use Jest?

When we write code, we expect it to work the way we imagine.

Post 2 / 15 • 2 min read

Writing Your First Jest Test (Step-by-Step Guide)

Let’s start fresh with a tiny project folder.

Post 3 / 15 • 3 min read

Testing Multiple Functions in Jest — Step by Step

Let’s see what happens when your Expense Tracker starts growing.

Post 4 / 15 • 3 min read

Testing Error Handling in Jest — Expense Tracker Edition

Our Expense Tracker has been doing great so far. It can calculate totals, find the highest expense, and even get averages.

Post 5 / 15 • 4 min read

Mocking APIs in Jest — Expense Tracker Edition

Our Expense Tracker is getting smarter with every post.

Post 6 / 15 • 4 min read

🕵🏻 Mocking Functions and Spies in Jest – Expense Tracker Edition

It can calculate totals, handle errors, and even mock APIs like a champ.

Post 7 / 15 • 3 min read

⏰ Mocking Timers and Async Behavior in Jest — Expense Tracker Edition

Our Expense Tracker has been through a lot already.

Post 8 / 15 • 3 min read

🧩 Mocking Modules and Dependencies in Jest — Expense Tracker Edition

Our Expense Tracker is growing like a startup that just got funding.

Post 9 / 15 • 3 min read

🧠 Mocking Configurations and Chained Dependencies in Jest — Expense Tracker Edition

Our Expense Tracker is turning into a real grown-up app now.

Post 10 / 15 • 3 min read

🎭 Mocking Data and Events in Jest — Expense Tracker Edition

and spy on its own functions like a detective.

Post 11 / 15 • 3 min read

🗄️ Mocking Storage & Caching in Jest — Expense Tracker Edition

Our Expense Tracker has learned a lot already.

Post 12 / 15 • 3 min read

🚨 Mocking Network Failures, Retries & Edge Cases in Jest

It can mock storage, fake events, spy on functions, and even travel through time.

Post 13 / 15 • 3 min read

Mocking Permissions, Sensors & Device Behaviors in Jest

🛎️ When Your App Wants to Notify the User…

Post 14 / 15 • 3 min read

🗺️ Mocking GPS & Location Sensors in Jest — Expense Tracker Edition

It helps with sorting, filtering, statistics — even memory.