penx/storybook-code-coverage

package.json have --roots=\"<rootDir>\"which makes yarn coverage do not work

qingbolove opened this issue · 3 comments

It keeps telling that it could not recognize the folder path, please change it to something static, then we could quickly check this whole solution. Thank you!

penx commented

Did you run the following exactly as follows:

git clone git@github.com:penx/storybook-code-coverage.git
cd storybook-code-coverage
yarn
yarn coverage
open coverage/merged/lcov-report/index.html

If so,

  • at what point does it fail?
  • what version of node, yarn do you have?
  • what OS are you on?

Thanks Penx, I think the reason is I am using a windows, which make "rm" and "mv" command do not work, I replace "rm" with "rimraf" I manual move the file, delete mv command it is ok now.

penx commented

Ah yes, that would be it, glad it's working now! If you want to open a PR that uses https://www.npmjs.com/package/rimraf instead of rm, I'll happily merge it