Skip to content
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

node.runTechAndRequire: use eval instead of require #10

Closed
blond opened this issue Apr 20, 2016 · 0 comments
Closed

node.runTechAndRequire: use eval instead of require #10

blond opened this issue Apr 20, 2016 · 0 comments
Assignees

Comments

@blond
Copy link
Member

blond commented 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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant