Jest mock postmessage. In-browser, this uses the Service Worker API.