I have wriiten few unit tests in tape and now i want to check my code for coverage, however if i install istanbul and run the command istanbul cover tape -r babel-register /thefolder/*.test.js. I get an error saying basedir=$(dirname "$(echo "$0" | sed -e 's,\,/,g')"). Anything im doing wrong and Thanks in advance...!!!
#Frond end developer, #ui, #javascript
Dong Nguyen
Web Developer
It's difficult to use istanbul directly with tape. My favorite approach is nyc. Here is an example:
github.com/ndaidong/is-stopword/blob/master/packa…