Closed silkentrance closed 8 years ago
using babel 6.3.x here, while babel-istanbul uses babel 6.1.x
nah, I think I found the reason for that. I am creating a dummy test file that will import all existing sources so that the coverage data is correct. After that I removed that file, babel-istanbul will run just fine. Investigating further.
@silkentrance I got the same issue. Can you elaborate how you solved it?
@Moezalez it has been some time now so I will try to remember. I think that it finally boiled down to some problem with babel-traverse. Installing a different version than that which the original babel compiler required did solve that problem for me. After a while, i.e. several babel releases later, the problem was gone.
That process included also cleaning out the local node_modules and the globally installed ones so that all dependencies get reinstalled.
Given the following source
and trying to generate coverage information for it using the following dummy test case
babel-istanbul will fail and output the following debug info/stack trace
As I am currently trying to migrate my existing projects over to babel 6.x so that might be a problem here?