-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Require error with io.js@2.2.x #43
Comments
Doesn't look like there would be any way to fix this in mock-fs 😞 |
May be need to mock |
ericlathrop
added a commit
to ericlathrop/unfold
that referenced
this issue
Jul 20, 2015
See tschaub/mock-fs#43 Either way, it's nice to have the test plugins as standalone files for syntax highlighting purposes.
Please reopen if this is still an issue with the latest Node. We may need to document it as a limitation. |
The same problem with |
👍 reproduced this error in |
@tschaub What do you think about mocking |
blond
pushed a commit
to enb/mock-enb
that referenced
this issue
Apr 20, 2016
In most ENB packages used `mock-fs` to testing. The `mock-fs` does not support `require` for `Node.js 4`: tschaub/mock-fs#43. Because of this `node.runTechAndRequire()` will throw error: ``` Cannot find module 'path/to/file.js' ```
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In
io.js@2.2.0
were changes withrequire
— nodejs/node#1801For real file system
require
works well, but withmock-fs
fail with error.How to reproduce:
Expected:
Actual:
The text was updated successfully, but these errors were encountered: