← Home Loading…

Worker tests verify whether requests made inside workers are intercepted. Test 1 (external Worker script) will likely fail with a security error before any network request — the browser blocks cross-origin worker scripts. Tests 2 & 3 use same-origin blob workers that then fetch() external URLs; those fetches should go through shouldInterceptRequest. Test 4 checks importScripts() inside a worker.
TestMethodTargetResult