TryGhostOSS
    Ghost
    Fixed webmention mock guard going stale on direct nock.cleanAll() calls The module-level webmentionDomainsMocked flag was only reset in restore(), but five DB-lane files (webhook-request, themes, webmentions, milestones, mentions) call nock.cleanAll() directly, bypassing restore(). In that path the interceptors were wiped but the flag stayed true, so the per-test re-registration in vitest-setup-db.ts's afterEach silently no-op'd — exactly the case that afterEach exists to cover — and the webmention mocks stayed gone for the rest of that worker until some other file happened to call restore(). Replaced the flag with a check against nock.activeMocks() so the guard reflects nock's actual live state instead of a boolean that can drift out of sync with it.
    nx run-many -t test:unit -p ghost
Succeeded
CI Pipeline Execution

nx run-many -t test:unit -p ghost

Click to copy
Linux
4 CPU cores
read-write access token used
b84637d428909
67%

Cache hits

2 of 3 tasks used cache.

Get faster results

Learn how to enable distribution.

Atomizer enabled

2 groups of tasks optimized.

© 2026 - Nx Cloud

Terms of ServicePrivacy PolicyChangelogStatusDocsContact Nx CloudPricingCompany@NxDevTools