Urgent.News

What's breaking now, across thousands of outlets.

More in Tech

Debugging Service Workers in Firefox: DevTools, about:debugging, and Common Issues

Service workers are a critical web platform feature — they enable offline capabilities, push notifications, and background sync. Firefox has full service worker support.

  • Firefox provides comprehensive support for service workers with DevTools and about:debugging
  • Common Firefox service worker issues: incorrect scope, registration errors, and HTTPS requirements

Setting an env var above your imports does not run before them, and our integration test works anyway

The largest test file in PubTrivia is 543 lines, and it has no mocks in it. It calls the actual server actions a player's phone calls, and the actual engine the host's buttons and our WebSocket server…

  • Lines above imports do not run before imports in ES modules
  • Import declarations are hoisted, evaluated before module execution
  • Async function disabling WebSocket notifications returns early with warning

More from Friday 16 October →