Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
`require all src files` in unit/index.js useless? #928
Does the following code really useful? I remove the code from my project, but nothing change, it seems not impact the code coverage as the comments stated.
According to karma-webpack doc, I can not find the purpose of these code too. If they are useful would you please give some explanation?
If you reference all source files from your tests anyway, then this has indeed no effect.
If however you tests leave out some source files, then this code would make sure they are still required and therefore taken into account when calculating coverage.
If that doesn't work as expected for you, maybe there's a bug?
@LinusBorg Tnx for explanation. I understand now. No bug exists.