A test that catches the bug your feature tests can't see

php dev.to

There's a class of bug that's maddening: it passes every test you have, then crashes in the user's face. I hit one in the admin UI of laravel-config-sso today, and the real fix wasn't changing an icon name — it was writing a test that could see the bug in the first place. The bug: wrong icon name, crashes only at runtime The admin UI uses Flux. Flux resolves icons through , and it throws for a name that doesn't exist: Flux component [icon.ellipsis] does not exist. It's an ea

Read Full Tutorial open_in_new
arrow_back Back to Tutorials