speedskater / babel-plugin-rewire

A babel plugin adding the ability to rewire module dependencies. This enables to mock modules for testing purposes.
842 stars 90 forks source link

Add test case for a bug caused by nested functions #143

Closed kossnocorp closed 8 years ago

kossnocorp commented 8 years ago

For some reason rewire API doesn't available in a function which has a nested function.

I'll try to fix this as soon as I'll have some time.

speedskater commented 8 years ago

@kossnocorp cool. Thanks for your help.

speedskater commented 8 years ago

I think the problem in this case is that there is no reference to the test method in the file and hence no methods are generated for the specific file. Hence, I will close this PR. If you think there should be another solution, do not hesitate to reopen the PR.