Closed mantoni closed 8 years ago
+1
I like it. Thanks for the contribution. Could you please also add a test for the babelify case? Thanks!
I've added test cases for the babelify case and also for the node_modules
case. I'm now recording the files to instrument in a transform. This should make sure that we leave the include / exclude logic unaltered. It works great for me, please verify on your end.
And after a slight timeout adjustment, Travis is also happy.
@mantoni Thanks for the contribution man. I'm adding you as a contributor
I meant as a collaborator
Thanks!
@ferlores Can you publish this as 2.4.0
on npm?
Published as 2.4.0
. Thanks!
This refactoring allow other transforms to modify the source code before instrumentation happens, e.g. the babelify transform.
Fixes https://github.com/mantoni/mochify.js/issues/116
I have tested this with
babelify@^7.2.0
and the transform being configured in the package.json like this:All the tests still pass without modification.