Measuring test coverage of dependency-injected Node.js modules via Blanket.js

If you use sandboxed-module to stub or mock module dependencies when unit testing your Node.js code, you probably already know it supports istanbul code coverage metrics.

However, if your JavaScript code coverage tool of choice is Blanket.js you may be pleased to discover that you too can now measure code coverage via NET-A-PORTER’s brand new sandboxed-module-blanket library.

It provides the essential glue between the asynchronous world of Blanket.js code coverage instrumentation and the synchronous world of sandboxed-module source code transformation.

Usage examples and more at

Print Friendly

Leave a Reply