fakeworkify
v0.2.0
Published
A completely fake pure-JS clone of webworkify for use in CLI testcases
Downloads
5
Maintainers
Readme
Fakeworkify
Mock implementation of webworkify for test cases
Installation
npm install --save-dev fakeworkify
Usage
The idea is to allow CLI test cases which utilize webworkers to still work. Use proxyquire to inject the mock implementation into your modules.
var proxyquire = require('proxyquire');
var myModule = proxyquire('./my-module', {
webworkify: require('fakeworkify')
});
License
MIT