fakeworkify

0.2.0 • Public • Published

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

Package Sidebar

Install

npm i fakeworkify

Weekly Downloads

1

Version

0.2.0

License

MIT

Last publish

Collaborators

  • chrisinajar