- expect(() => new DynamicThreadPool(min)).toThrowError(
- 'Please specify a file with a worker implementation'
+ expect(() => new DynamicThreadPool(min)).toThrow(
+ "Cannot find the worker file 'undefined'"
{
errorHandler: e => console.error(e),
onlineHandler: () => console.info('long executing worker is online'),
{
errorHandler: e => console.error(e),
onlineHandler: () => console.info('long executing worker is online'),
{
errorHandler: e => console.error(e),
onlineHandler: () => console.info('long executing worker is online'),
{
errorHandler: e => console.error(e),
onlineHandler: () => console.info('long executing worker is online'),