👷♀️ Use Web Workers in Jest / JSDOM 🌈
Full Changelog: https://github.com/developit/jsdom-worker/compare/0.2.1...0.3.0
eval()
to Function()
for code evaluation (#6)self.onmessage
detection (#9)fetch
mock if it's overwritten by Jest (#9)Wow, two years! This release includes two changes:
importScripts()
is now mocked by default. You'll want to add your own mock, but jest-worker won't error by default now. (#2, thanks @alexnoz)Initial release!