Worker Box is a toolbox to help you test Web Workers. It provides an easy way to create, stub, and modify your Workers without complicated test servers or monkey patches. For more info, be sure to check out the documentation!
Install Worker Box through npm:
npm install --save-dev worker-box
And then load it via a script tag in your page:
<script src="/node_modules/worker-box/index.js"></script>
And that's it! The WorkerBox
global should now be available for use.
For information on how to use Worker Box and the APIs it provides, check out the official documentation.