Premium

Bug Squash: Fix an Unfamiliar Invoicing Repo

By FrontendAtlas Editorial · Updated Nov 7, 2026

Challenge summary

Five files you have not seen and four bug reports from support: find the cause of each in a small invoicing repo, fix it without changing the public functions, and make the tests pass.

What you'll practice

  • Turn a support report into the line of code that causes it.
  • Keep money exact in minor units, from the amount a customer types to the invoice total.
  • Protect data a function does not own.
  • Make retries safe in a payments client, idempotency keys included.

What Premium unlocks

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

One of the four reports from support

A $5.00 coupon wipes out the whole invoice.

The repo is five small files you have not seen before: currency, line items, ids, invoice and payments. Six tests show what correct looks like.

Free related practice

Public interview reports: Taro (October 2023), Taro (November 2022), Blind (November 2024), Taro (March 2025) · Stripe frontend interview questions

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.