Skip to content

v5.3.1

Choose a tag to compare

@ianwieds ianwieds released this 02 Jun 05:31
· 23 commits to main since this release

Fixed

  • Leaking wonderful-fetch mock in the webhook-forward unit test. test/helpers/webhook-forward.js installs a stub into require.cache['wonderful-fetch'] at module load (the sanctioned cross-project fan-out exception — there's no second BEM emulator to receive the real fan-out POSTs), but never restored it. Because every test file is require()d into the same process, the stub leaked process-wide: every later test whose route did require('wonderful-fetch') got { received: true } in 0ms instead of a real HTTP round-trip (observed breaking consumer sponsorship + inbound-email route tests). The helper now saves the original cache entry and restores it in a suite-level cleanup(), confining the mock to its own file.