Stop pinning setThemeSlug's argument list in a source assertion

Testkamo-internal
Shipped
September 9, 2026 at 2:32 AM UTC
Author
Kamo
Commit
b4127ca

`tabOrgResolution` was red on main. It asserts on the SOURCE of app/validate/page.tsx and required the literal text `setThemeSlug(orgRef)`, so `f9bd7621` — which added the second argument the function has always been free to take — turned correct, working behaviour into a failing test. The assertion is a regex on the call now. What the test cares about is that the tab's org ref is handed to setThemeSlug at all, and it still says exactly that; it just no longer also asserts the arity of a function it is not testing. Nothing in app/ changes. Worth noting that vitest does not run in CI — the image build runs the guard scripts and `next build` — which is how a red test sat on main without anything going red.

All changes

Like what you see shipping?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing