Premium

Bug Squash: Failing Tests, a Slow Path and Messy Code in a Notes App

By FrontendAtlas Editorial · Updated Nov 26, 2026

Challenge summary

Five files you have not seen and four failing tests: find the cause of each in a small notes app, fix a slow render path, tidy a tangled module and keep every passing test green.

What you'll practice

  • Read an unfamiliar codebase from its failing tests inward.
  • Find a cache that never hits and prove the fix with a render count.
  • Rewrite a tangled function so the bug hiding in it shows, without changing what the tests pin down.
  • Keep each fix in the one file that causes it, and check every change against the suite.

What Premium unlocks

Premium unlocks the runnable workspace, behavioral checks, implementation walkthrough, and edge-case discussion.

One of the four failing tests

redraws only the block that changed

The repo is five small files you have not seen before: ids, pages, search, titles and render. Nine tests show what correct looks like, and four of them fail.

Free related practice

Upgrade to FrontendAtlas Premium to unlock this challenge. Already upgraded? Sign in to continue.

Premium is $24 a month or $99 a year, less in many countries.