Open ankitkhedekar opened 4 years ago
Have you tried nyc riteway -r @babel/register -r @babel/polyfill src/**/*-test.js
?
Yes, I tried this as well, still shows 0 %
1..2
# tests 2
# pass 2
# ok
----------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
----------|---------|----------|---------|---------|-------------------
All files | 0 | 0 | 0 | 0 |
----------|---------|----------|---------|---------|-------------------
both subject and test file for reference: https://github.com/ankitkhedekar/angular-cric-scorer/tree/master/src/app/common
I wouldn't know how to begin investigating this. Have you asked the nyc team about this?
i have been trying to use riteway, in one of my sideprojects. When trying to get it working with instanbul coverage report it shows 0% coverage.
I currently have only a single test.js file , it imports a class from another js file, and runs tests on it.
Output:
package.json
.babelrc
.nycrc