Skip to content

bcoe/node-25650-bug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Demonstrate Node.js 25650 Bug

In Node.js 11.7.0, a bug was introduced that results in the following command:

npm t

Outputting an empty coverage report. In older versions of Node.js, a correct 100% coverage report is output.

The underlying cause appears to be that the registered exit handler in nyc no longer fires:

onExit(function () {
  _this.writeCoverageFile()
}, {alwaysLast: true})

☝ mocha has its own exit handler, one hunch is perhaps two exit handlers being run in conjunction no longer works.

About

nyc and mocha no longer work in conjunction

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published