A test guard keeps its opt-in flag in module state and wraps the global request function with no unwrap. When files share a worker, one file's opt-in leaks into the next, or a stale wrapper refuses a call nobody reports.
Scope a per-file switch to the file, not the module. A shared worker keeps module state alive.
Install a global wrapper once; test it with shared workers. Default isolation hides the stacking.
Install a global wrapper once; test it with shared workers. Default isolation hides the stacking.