Skip to content
This repository was archived by the owner on Nov 4, 2026. It is now read-only.

fix(tests): gate the unit project's shared-global invariant, and stop the fetch leak that breaks the network-escape ledger - #8538

Merged
baozhoutao merged 1 commit into
mainfrom
claude/issue-8500-global-fetch-leak
Sep 8, 2026
Merged

baozhoutao merged 1 commit into
mainfrom
claude/issue-8500-global-fetch-leak

Conversation

@claude

@claude claude Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Fixes #8500

The defect, re-measured on today's tree

origin/main c30026715, dedicated worktree, fresh install, nothing else:

pnpm exec vitest run --project unit --maxWorkers=2
  Test Files  1 failed | 977 passed (978)
       Tests  1 failed | 16666 passed | 2 skipped (16669)
 FAIL scripts/__tests__/network-escape-ledger.test.ts
   > still wraps the global fetch to record escapes
 AssertionError: expected 'Mock' to be 'guardedFetch'

The card's premise holds: the failure still reproduces, and the writer is real.

What was actually leaking

The unit project runs isolate: false — one module graph and one global object per worker. vitest.config.mts already writes out the first invariant that pays for that (ComponentRegistry keys) and hands enforcement to scripts/__tests__/unit-registry-absence-collision.test.ts. globalThis is the second invariant of the same class, and it had no gate:

a global the setup files install must be the same value at the END of a file as it was at the START of it.

Five files broke it. Four replaced globalThis.fetch with a bare vi.fn() by assignment; one left a vi.stubGlobal('localStorage', ...) standing, which under isolate: false is undone by whichever LATER file calls vi.unstubAllGlobals() first, restoring a value that file never installed.

  • packages/core/src/actions/__tests__/ActionRunner.test.ts
  • packages/core/src/actions/__tests__/ActionRunner.bodyExtra.test.ts
  • packages/core/src/actions/__tests__/ActionRunner.bodyShape.test.ts
  • packages/core/src/actions/__tests__/UndoManager.test.ts
  • packages/app-shell/src/preview/__tests__/commitHistory.test.ts

A bare assignment is undone by neither vi.unstubAllGlobals() nor vi.restoreAllMocks(), because neither knows the value was ever replaced. That is why commitHistory.test.ts, which already called vi.restoreAllMocks() in an afterEach, still leaked.

Direction 1, both halves — as the triage seat's routing opinion asked

The writers hand the global back. vi.stubGlobal in, vi.unstubAllGlobals() out.

The next writer is caught, not discovered. vitest.setup.shared-global-leak-guard.ts arms a per-file afterAll in every isolate: false project. It snapshots what the setup files installed, reds the file that left one replaced, and — before it throws — puts the value back, so the file that leaked is the only one that goes red instead of the failure surfacing three files later in one that did nothing wrong.

It has to be a setup file, and that is measured rather than stylistic. Vitest re-executes setupFiles for every test file even under isolate: false, while a module those setup files import is evaluated once per worker — so a hook registered in such a module attaches to the first test file of the worker and to no other:

ZZPROBE inner body ran, count= 1     <- module imported BY a setup file
ZZPROBE setup body ran, count= 1     <- the setup file itself
ZZPROBE afterEach n= 1               <- setup file's hook, file 1
ZZPROBE inner afterEach n= 1         <- imported module's hook, file 1
ZZPROBE setup body ran, count= 2     <- setup file re-executes for file 2
ZZPROBE afterEach n= 2               <- its hook fires again
                                     <- the imported module's hook does NOT

afterAll and not afterEach, because the invariant is about what crosses a FILE boundary: the network-escape guard's own Fix: text prescribes leaving a module-scope double up for a whole file when the component can read after the test body returns, and an afterEach here would red exactly that prescribed shape.

The guard is wired only into projects that set isolate: false. dom / dom-heavy / dist keep isolate: true, where each file gets its own global object and nothing crosses.

A second leak the new guard found immediately

scripts/__tests__/unit-registry-absence-collision.test.ts imports the project's closures into a private module graph after vi.resetModules(). One of the specifiers it resolves is vitest.setup.network-escape-guard — scripts/__tests__/network-escape-ledger.test.ts imports it by path — so the guard RE-EXECUTED there and installed a second guardedFetch over the first. Both wrappers are named guardedFetch, so the ledger test could never see the swap, and every file after that one in the worker ran with a doubled wrapper whose afterEach belonged to a module instance the run had already discarded. That gate now snapshots and restores the globals around its measurement.

Evidence

Full unit project, before and after, same worktree, both through the shared verify lock:

before  Test Files  1 failed | 977 passed (978)   Tests  1 failed | 16666 passed | 2 skipped
after   Test Files  979 passed (979)              Tests  16678 passed | 2 skipped (16680)

@object-ui/console project (it merges this config): 90 files / 1072 tests passed.

Reverse verification 1 — the guard can fail. The stub in ActionRunner.bodyShape.test.ts was reverted to the raw assignment on disk (git hash-object moved fd231cdc -> 8daf94e0; the anchored marker counts inverted both ways: stub-form 1->0, raw-form 0->1, unstub 1->0), and the file alone was run:

Error: Shared-global leak: this test FILE left a global replaced.
  - globalThis.fetch: expected function guardedFetch, found function Mock
 Test Files  1 failed (1)
      Tests  7 passed (7)

The 7 tests of the file still pass; only the leak reds, and it reds on the writer. Restored under a trap and proved by state, not by an exit code: blob back to fd231cdc, git diff HEAD empty.

Reverse verification 2 — the wiring pin is not vacuous. The guard was removed from the unit project's setupFiles on disk (blob 37c1635d -> ce585009; armed-count 2->1 while base-count held at 3), and shared-global-leak-guard.test.ts went red on exactly the two wiring assertions:

AssertionError: every `isolate: false` project must list
  vitest.setup.shared-global-leak-guard.ts in its setupFiles.
AssertionError: the guard is armed in a project that is not `isolate: false`.
 Test Files  1 failed (1)   Tests  2 failed | 9 passed (11)

Restored the same way: blob back to 37c1635d, git diff HEAD empty.

Gates: pnpm type-check:vitest-setup exit 0 (after building the four packages its program resolves through), pnpm type-check:scripts exit 0, turbo run type-check --filter @object-ui/core --filter @object-ui/app-shell 31/31, node scripts/check-changeset-presence.mjs exit 0, node scripts/check-changeset-no-major.mjs exit 0, node scripts/check-governed-queue-guard.mjs --test NOT GOVERNED.

ESLint, narrowed and declared: pnpm lint:root exit 0 (32 warnings, 0 errors) plus turbo run lint --filter @object-ui/core --filter @object-ui/app-shell 3/3 successful (2925 warnings, 0 errors), and eslint --no-inline-config over the 10 changed files, exit 0, 9 warnings and 0 errors — all pre-existing no-explicit-any on lines the diff did not touch. Type-aware linting is not enabled in eslint.config.js (no parserOptions.project, no projectService), so this diff cannot move the verdict on any file it does not contain. Ratchet counts read on 51ee1fdff. The repo-wide eslint . sweep is CI's.

Filed, not fixed here

objectui#8537 — the same guard file's OTHER half is inert: its afterEach, the one its header calls "the afterEach that fails ANY escape in ANY file", registers only for the first test file each worker runs in the unit project, by exactly the mechanism the probe above shows. Two byte-identical escaping files run together: only the first reds. Repairing it is a separate blast radius — escapes invisible today would all turn red at once, and how many there are has not been measured — so it is filed unlabelled for triage rather than ridden in here.

Notes

  • Test (shard 2/4) is flaky in this repository on ObjectKanban.contractEnvelope-6839.test.tsx:134, tracked as objectui#8493 and unrelated to this diff.
  • The changeset declares an empty frontmatter: this is test infrastructure and releases nothing.

🤖 Generated with Claude Code

https://claude.ai/code/session_01FhBNJcLRZLe8M87VcUgpKr


Generated by Claude Code

… unit worker

The `unit` project runs `isolate: false` — one module graph and one global
object per worker — and `vitest.config.mts` writes out the ComponentRegistry
invariant that pays for it, enforced by
`scripts/__tests__/unit-registry-absence-collision.test.ts`. `globalThis` is the
second invariant of the same class and had no gate:

    a global the setup files install must be the same value at the END of a file
    as it was at the START of it.

It was already false. Four files replaced `globalThis.fetch` with a bare
`vi.fn()` by assignment, and a fifth left a `vi.stubGlobal('localStorage', ...)`
standing, so the network-escape guard's `guardedFetch` wrapper was gone for
every later file in the worker and `scripts/__tests__/network-escape-ledger.test.ts`
— a file that did nothing wrong — went red on a full `--project unit` run
reading `Mock` where the wrapper belonged.

Both halves:

- the writers hand the global back: `vi.stubGlobal` in, `vi.unstubAllGlobals()`
  out. A bare assignment is undone by neither `vi.unstubAllGlobals()` nor
  `vi.restoreAllMocks()`, because neither knows the value was ever replaced.
- `vitest.setup.shared-global-leak-guard.ts` arms a per-file `afterAll` in every
  `isolate: false` project: it snapshots what the setup files installed, reds the
  file that left one replaced, and puts the value back so no innocent file
  inherits it. The wiring and the detector are pinned by
  `scripts/__tests__/shared-global-leak-guard.test.ts`.

It has to be a setup file: measured, Vitest re-executes `setupFiles` per test
file even under `isolate: false`, while a module those setup files IMPORT is
evaluated once per worker — so a hook registered in such a module attaches to the
first test file of the worker and to no other.

The new guard immediately found a second leak that nothing could previously see:
`unit-registry-absence-collision.test.ts` imports the project's closures into a
private module graph, and one of the specifiers it resolves is
`vitest.setup.network-escape-guard`, so `vi.resetModules()` made it re-execute
and install a SECOND `guardedFetch` over the first. Both wrappers carry the same
name, so nothing downstream could detect the swap. That gate now snapshots and
restores the globals around its measurement.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FhBNJcLRZLe8M87VcUgpKr
@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

❌ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 50 chunks) 3475.0 KB 3512.7 KB
Main entry chunk (gzip) 143.9 KB 350 KB
Entry file index-CI564s7H.js —
Status FAIL —

The eager closure is every chunk the entry reaches through static imports — what the browser fetches and parses before the app renders. The entry chunk on its own is a small fraction of it.

Which half objected:

Eager-closure half Verdict
Aggregate closure ceiling ✅ pass
Per-chunk ceilings ❌ over its ceiling
Ceiling sensitivity (headroom) ✅ pass
Ceiling freshness (checkout vs. base branch) ✅ pass

📦 Bundle Size Report

Package Size Gzipped
app-shell (consoleActionDispatch.js) 0.20KB 0.19KB
app-shell (index.js) 15.67KB 5.75KB
app-shell (runtime-config.js) 20.68KB 7.36KB
app-shell (types.js) 0.01KB 0.04KB
app-shell (urlParams.js) 10.06KB 3.86KB
auth (ActiveOrganizationStorage.js) 25.05KB 9.16KB
auth (AuthContext.js) 0.31KB 0.24KB
auth (AuthGuard.js) 2.07KB 1.00KB
auth (AuthProvider.js) 40.18KB 10.59KB
auth (AuthShell.js) 3.49KB 1.40KB
auth (ForgotPasswordForm.js) 12.21KB 3.45KB
auth (LoginForm.js) 18.15KB 5.39KB
auth (PreviewBanner.js) 0.90KB 0.50KB
auth (RegisterForm.js) 6.65KB 2.22KB
auth (SocialSignInButtons.js) 9.61KB 3.89KB
auth (UserMenu.js) 3.41KB 1.23KB
auth (auth-gate-events.js) 1.29KB 0.66KB
auth (authStyles.js) 5.04KB 1.72KB
auth (createAuthClient.js) 40.21KB 10.80KB
auth (createAuthenticatedFetch.js) 8.46KB 3.43KB
auth (index.js) 3.19KB 1.44KB
auth (invitation-status.js) 1.22KB 0.70KB
auth (org-roles.js) 6.66KB 2.78KB
auth (phone-identifier.js) 1.11KB 0.66KB
auth (types.js) 0.59KB 0.35KB
auth (useAuth.js) 5.30KB 1.02KB
auth (useWorkspaceAdminStatus.js) 11.08KB 4.58KB
collaboration (CommentThread.js) 26.08KB 7.56KB
collaboration (LiveCursors.js) 3.17KB 1.27KB
collaboration (PresenceAvatars.js) 6.49KB 2.64KB
collaboration (PresenceProvider.js) 2.79KB 1.13KB
collaboration (index.js) 1.68KB 0.73KB
collaboration (useCollaborationTranslation.js) 6.05KB 2.52KB
collaboration (useCommentSearch.js) 1.98KB 0.88KB
collaboration (useConflictResolution.js) 7.75KB 1.86KB
collaboration (useMentionNotifications.js) 1.81KB 0.68KB
collaboration (usePresence.js) 6.33KB 1.84KB
collaboration (useRealtimeSubscription.js) 7.91KB 2.01KB
components (index.js) 498.87KB 114.10KB
core (index.js) 7.48KB 2.96KB
create-plugin (index.js) 10.12KB 3.28KB
data-objectstack (index.js) 191.36KB 53.16KB
fields (index.js) 243.24KB 61.42KB
i18n (LocalizationContext.js) 1.76KB 0.96KB
i18n (builtinAggregateLabels.js) 0.86KB 0.49KB
i18n (currency.js) 1.22KB 0.64KB
i18n (fallbackInterpolation.js) 6.25KB 2.77KB
i18n (i18n.js) 6.57KB 2.76KB
i18n (index.js) 3.65KB 1.47KB
i18n (pickLocalized.js) 7.62KB 3.26KB
i18n (provider.js) 26.89KB 9.04KB
i18n (useDisplayLocale.js) 2.85KB 1.45KB
i18n (useObjectLabel.js) 34.34KB 9.17KB
i18n (useSafeTranslation.js) 5.60KB 2.33KB
layout (index.js) 38.84KB 10.94KB
mobile (MobileProvider.js) 0.92KB 0.49KB
mobile (ResponsiveContainer.js) 0.94KB 0.38KB
mobile (breakpoints.js) 1.51KB 0.70KB
mobile (createOfflineDataSource.js) 5.61KB 1.75KB
mobile (index.js) 1.99KB 0.87KB
mobile (offlineQueue.js) 3.91KB 1.35KB
mobile (pwa.js) 0.97KB 0.49KB
mobile (serviceWorker.js) 1.48KB 0.62KB
mobile (serviceWorkerSource.js) 3.41KB 1.48KB
mobile (useBreakpoint.js) 1.54KB 0.65KB
mobile (useGesture.js) 6.96KB 1.98KB
mobile (useOfflineSync.js) 1.99KB 0.72KB
mobile (usePullToRefresh.js) 2.53KB 0.85KB
mobile (useResponsive.js) 0.72KB 0.42KB
mobile (useSpecGesture.js) 4.39KB 1.66KB
mobile (useTouchTarget.js) 1.01KB 0.54KB
permissions (MePermissionsProvider.js) 11.71KB 4.29KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 6.24KB 2.16KB
permissions (discardProofCache.js) 1.04KB 0.55KB
permissions (evaluator.js) 5.12KB 1.74KB
permissions (index.js) 0.93KB 0.41KB
permissions (store.js) 0.91KB 0.42KB
permissions (useFieldPermissions.js) 1.28KB 0.53KB
permissions (usePermissions.js) 4.83KB 2.27KB
plugin-ai (index.js) 15.16KB 3.68KB
plugin-calendar (index.js) 49.00KB 13.91KB
plugin-charts (index.js) 71.39KB 19.92KB
plugin-chatbot (index.js) 194.53KB 46.34KB
plugin-dashboard (index.js) 131.43KB 34.44KB
plugin-designer (index.js) 213.21KB 43.63KB
plugin-detail (index.js) 248.46KB 63.90KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 131.01KB 32.32KB
plugin-gantt (index.js) 167.16KB 40.99KB
plugin-grid (index.js) 208.30KB 56.63KB
plugin-kanban (index.js) 55.40KB 15.71KB
plugin-list (index.js) 112.74KB 27.70KB
plugin-map (index.js) 20.49KB 6.83KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 43.42KB 11.92KB
plugin-timeline (index.js) 30.10KB 8.74KB
plugin-tree (index.js) 9.33KB 3.25KB
plugin-view (index.js) 84.54KB 20.84KB
providers (DataSourceProvider.js) 0.75KB 0.39KB
providers (MetadataProvider.js) 1.37KB 0.59KB
providers (ThemeProvider.js) 1.90KB 0.85KB
providers (UploadProvider.js) 11.66KB 3.50KB
providers (index.js) 0.45KB 0.23KB
providers (types.js) 0.01KB 0.04KB
react-runtime (index.js) 5.62KB 2.34KB
react (LazyPluginLoader.js) 4.47KB 1.63KB
react (SchemaRenderer.js) 81.07KB 26.86KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 4.63KB 2.18KB
react (schema-input.js) 2.32KB 1.24KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (codegen.js) 6.58KB 2.74KB
sdui-parser (dashboard-widget-options.js) 3.08KB 1.30KB
sdui-parser (index.js) 5.55KB 2.45KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (parse.js) 20.57KB 5.88KB
sdui-parser (provenance.js) 3.66KB 1.82KB
sdui-parser (types.js) 0.28KB 0.23KB
sdui-parser (validate.js) 13.64KB 4.59KB
types (ai.js) 0.20KB 0.17KB
types (api-types.js) 0.20KB 0.18KB
types (app.js) 2.87KB 1.00KB
types (base.js) 0.20KB 0.18KB
types (blocks.js) 0.20KB 0.18KB
types (complex.js) 2.93KB 1.49KB
types (crud.js) 0.20KB 0.18KB
types (dashboard-filter-alias.js) 6.23KB 2.74KB
types (data-display.js) 3.75KB 1.85KB
types (data-protocol.js) 0.20KB 0.19KB
types (data.js) 0.20KB 0.18KB
types (designer.js) 1.85KB 0.85KB
types (disclosure.js) 0.20KB 0.18KB
types (error-code.js) 1.54KB 0.88KB
types (expression.js) 0.20KB 0.18KB
types (feedback.js) 0.20KB 0.18KB
types (field-types.js) 0.20KB 0.18KB
types (form.js) 0.20KB 0.18KB
types (http-inflight.js) 8.87KB 3.73KB
types (http-retry.js) 4.32KB 2.02KB
types (icon-key-migration.js) 4.26KB 1.63KB
types (index.js) 4.74KB 2.25KB
types (layout.js) 0.20KB 0.18KB
types (managed-by.js) 0.19KB 0.18KB
types (mobile.js) 4.73KB 2.28KB
types (navigation.js) 0.20KB 0.18KB
types (objectql.js) 0.20KB 0.18KB
types (overlay.js) 0.20KB 0.18KB
types (permissions.js) 0.20KB 0.18KB
types (plugin-scope.js) 0.20KB 0.18KB
types (record-components.js) 0.20KB 0.19KB
types (record-semantics.js) 1.28KB 0.67KB
types (registry.js) 0.20KB 0.18KB
types (reports.js) 0.20KB 0.18KB
types (select-option.js) 0.20KB 0.19KB
types (spec-report.js) 5.05KB 1.93KB
types (spec-ui-namespace.js) 0.20KB 0.19KB
types (system-fields.js) 3.33KB 1.54KB
types (theme.js) 6.28KB 2.87KB
types (ui-action.js) 8.11KB 3.32KB
types (views.js) 0.20KB 0.18KB
types (widget.js) 0.20KB 0.18KB

Size Limits

  • ✅ Core packages should be < 50KB gzipped
  • ✅ Component packages should be < 100KB gzipped
  • ⚠️ Plugin packages should be < 150KB gzipped

@claude

claude Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor Author

⚠️ Bundle Analysis is red on this PR and it is ⛔ NOT this diff's — filed as objectui#8541. domain:devx @ objectui execution seat, PM session session_01FhBNJcLRZLe8M87VcUgpKr, R47, 2026-09-08T08:24Z.

The attribution, structural rather than statistical

⭐ This PR's own base commit fails the same gate, with no PR diff at all. 90a9aab32 is a main commit; run 34202033489 on it (push event, 07:58:31Z) is a failure. So is every completed main push run since f76f43628 at 05:44:56Z, while 40a7c538a at 04:01:25Z was the last green. ⇒ The gate was already red on the base this branch is built on.

Supporting, and independent of that: the failing leg is BUDGET_CLOSURE_CHUNK_STATUS — a per-chunk gzip ceiling on apps/console's eager closure. This PR's entire diff is five test files, two new root test-setup modules, vitest.config.mts and a changeset. ⛔ None of them is in the console's build graph; vitest.config.mts configures the test runner, ⛔ not the bundler.

⛔ What will not be done about it here

  • ⛔ No change to this PR to make that gate green. Its verdict is about main, and widening this PR to chase it would be exactly the "don't widen the PR on your own" failure.
  • ⛔ Not re-run. A re-run measures the same tree and would fail the same way; "flake" is not a candidate explanation for a deterministic budget comparison.
  • Bundle Analysis is not a required check — the merge queue's required set is the non-coverage Test (shard 1/4..4/4) jobs — so ⛔ nothing here is blocked by it.

⚠️ What is NOT established, and objectui#8541 says so on its own face: which chunk breached its ceiling, and which of the four commits in the window did it. The log API windows past the checker's per-chunk table, the same way it does for the coverage shard in objectui#8479. ⇒ ⛔ This seat named neither, and the card asks for a git bisect over those four commits with the checker as the predicate.


Generated by Claude Code

@baozhoutao
baozhoutao marked this pull request as ready for review September 8, 2026 08:32
@baozhoutao
baozhoutao added this pull request to the merge queue Sep 8, 2026
Merged via the queue into main with commit 19d86fe Sep 8, 2026
33 of 34 checks passed
@baozhoutao
baozhoutao deleted the claude/issue-8500-global-fetch-leak branch September 8, 2026 08:49
@claude

claude Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor Author

LANDED — 19d86fe9e on origin/main. domain:devx @ objectui execution seat, PM session session_01FhBNJcLRZLe8M87VcUgpKr, R47, 2026-09-08T08:52Z. PR #8538 (card objectui#8500), merged first pass.

Landing probe, on a re-fetched origin/main (19d86fe9e)

probe expect read
vitest.setup.shared-global-leak-guard referenced in vitest.config.mts > 0 2 (the setupFiles entry and the comment naming its pin)
installSharedGlobalLeakGuard in the guard setup file > 0 3
installSharedGlobalLeakGuard in the detector module > 0 2
snapshotGlobals in unit-registry-absence-collision.test.ts — the second leak's repair > 0 2
⭐ the blind-spot pin: expected: 'function guardedFetch', found: 'function guardedFetch' > 0 1
⭐ firing control — isolate: false in vitest.config.mts > 0 1
⭐ nonsense control — zzq-not-a-real-token-8500 0 0

⇒ The zero is a reading, not a broken pattern.

What is now on main

The unit project's second shared-state invariant is enforced rather than written down: a global the setup files install must be the same value at the end of a file as it was at the start of it. The guard reds the file that leaked and heals the global before throwing, so the leak no longer cascades onto innocent files — which was the whole failure shape.

⭐ And the pin that survives longest is the one on the blind spot. The second leak this PR fixed — a re-executed setup module installing a second guardedFetch over the first — was invisible to globalThis.fetch.name because both wrappers carry the same name. That case is now pinned by content on main: a leak is reported when expected and found are both function guardedFetch. ⇒ The next same-named replacement cannot hide the way this one did for however long it had been there.


Generated by Claude Code

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

finding(tooling): network-escape-ledger.test.ts fails on clean main in a full --project unit run — another file leaves a vi.fn() on globalThis.fetch

2 participants