-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Add ava modules to test module paths #151
Add ava modules to test module paths #151
Conversation
I don't think this is compatible with npm@3, though. As it could put |
@@ -2,6 +2,7 @@ | |||
var resolveFrom = require('resolve-from'); | |||
var createEspowerPlugin = require('babel-plugin-espower/create'); | |||
var requireFromString = require('require-from-string'); | |||
var resolve = require('path').resolve; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I usually prefer to import the full module.
var path = require('path');
You also need to bump |
1786c69
to
46e33ed
Compare
46e33ed
to
de0955b
Compare
Fixed. |
…-paths Add ava modules to test module paths
Awesome! Thanks for working on this and resolving it so quickly @floatdrop :) Continues in: #152 |
Drawback - now you can require any module from
ava/node_module
in tests.Closes #144