Sentry's alexdotjs bans beforeEach in favor of explicit resource management with using

alexdotjs · x · 2026-10-29

Sentry co-founder David Cramer (alexdotjs) responds to Zeeg's critique of his testing style with a concrete pattern:

Zeeg counters that per-test setup is excessive duplication and argues boilerplate is especially harmful with AI coding agents, which keep duplicating semi-broken setup code across a codebase. The core dispute: explicit vs implicit test context management.

Related event: Sentry founder debates explicit resource management vs per-test setup in testing(3 posts)→

Original post →

More from coding & agent

coding & agent channel →