typescript-library-starter icon indicating copy to clipboard operation
typescript-library-starter copied to clipboard

Jest coverage for all folders

Open robinxb opened this issue 5 years ago • 0 comments

Hi, Instead of using

"collectCoverageFrom": [
      "src/*.{js,ts}"
    ]

Which only coverage the files under src, not including files in subfolders.

I suggest that change it into:

    "collectCoverageFrom": [
      "src/**/*.{js,ts}"
    ]

I took sometime to figure this out since I'm new to Jest. Hope this will help others like me.

I've created a PR if you agreed with me 😃

robinxb avatar May 31 '19 01:05 robinxb