Boussole started as a personal-finance spreadsheet. Turning it into a web app raised the question every rewrite raises: how do you know the new version computes the same thing as the old one? Writing tests against my own code would only prove that the code agrees with itself.
So the tests are written against the spreadsheet. Excel computes the expected results for 16 scenarios, and that golden data is the oracle. If the app and Excel disagree by one cent, the build fails. I like this kind of oracle because nobody had to invent the expected values. They come straight from the tool the app replaces.
That only works if the logic is easy to test exhaustively, so the simulation engine is pure: no framework, no clock, no randomness, enforced by a lint rule rather than by good intentions. Money is stored as integer cents and rounded with Excel’s own rules, otherwise a 300-month plan drifts away from the spreadsheet one rounding at a time.
Security got the same treatment. Every table uses Supabase Row Level Security, and those rules have their own isolation tests. A security rule that is only written, and never tested, is a hope.
In total the app carries about 920 tests: the engine against Excel, component tests, RLS isolation tests and Playwright journeys on desktop and at 375 px, all in GitHub Actions. Most of them were cheap to write, precisely because the logic was kept pure from day one.