HP

Blog · · 2 min read

Removing a build bypass and finding 124 hidden type errors

A green build can lie when checks are switched off. Turning a bypass off at FrancoBuddy revealed 124 TypeScript errors. Here is what changed.

TestingProcess

At FrancoBuddy I worked as a software engineer (data and AI), part-time alongside my studies. One of the first things I noticed was that the build was green, but not because the code was clean. A setting let the build pass even when the type checker complained.

Why a bypass is a trap

A bypass is useful for a day. It lets you ship while you fix something. The danger is that it hides the thing it was meant to find. Every new mistake adds to the pile and nobody sees the pile.

What happened when I turned it off

I removed the bypass and ran the type checker. It reported 124 TypeScript errors that had been there the whole time. Having the number at all was the first useful result. A pile you cannot count is a pile you cannot plan to clear.

Clearing it

A few things helped, and they apply to any pile of errors:

  • Group them. Many errors share a cause, such as one wrongly typed function used in ten places.
  • Fix the source, not the symptoms. Typing the data at the edge, where it enters the app, removes errors downstream.
  • Avoid silencing. Replacing a type with "any" makes the count drop and the problem stay.
  • Re-run often. The count is the feedback loop. It went from 124 to 0.

The safety net

Getting to zero is easy to lose. So I added the things that keep it there:

  • A Vitest test suite, which now has 136 passing tests.
  • Continuous integration that runs linting, the type check and the tests, plus automated secret scanning on pull requests.

With those in place, a change that breaks types or tests cannot merge quietly.

What this does and does not claim

The numbers are real: 124 errors fixed, 0 now, 136 tests passing. They describe the code quality and checks I built, not business results. I do not claim user numbers, scale or revenue for the product.

You can see the project and its evidence IDs on my portfolio.