tschaub / mock-fs

Configurable mock for the fs module
https://npmjs.org/package/mock-fs
Other
911 stars 86 forks source link

fix: uvBinding.errmap is undefined in Nodejs v12+ #329

Closed 3cp closed 3 years ago

3cp commented 3 years ago

No idea why this did not fail in test/lib/binding.spec.js, a log of uvBinding.errmap did yield the error map (maybe mocha patched it??). It's very hard runtime error when using mock-fs 5.0.0-beta.1

tschaub commented 3 years ago

Yikes.

3cp commented 3 years ago

Can we release another beta?

tschaub commented 3 years ago

With #330, we now have a workflow that publishes new dev tagged releases with each commit to main. So you can try out the latest dev release with npm install mock-fs@dev. See the versions tab on the mock-fs package page to look for a specific dev version. Or you can look at the publish workflow for a commit to main to find the corresponding version id (e.g. expand the "Publish" part of the log in https://github.com/tschaub/mock-fs/runs/2568701956).

3cp commented 3 years ago

The dev version is working well for me.