loaders icon indicating copy to clipboard operation
loaders copied to clipboard

Bad coverage information when loaders are used

Open simlu opened this issue 2 years ago • 0 comments

Opening this so there is an actual issue tracked on this repo and to get some attention.


There is a problem when reporting test coverage while using loaders. I'm not going to go into too much detail here since I don't fully understand the issue and don't want to give incorrect information. However there is plenty to read up on.

Relevant tickets:

  • https://github.com/nodejs/node/issues/41387
  • https://github.com/bcoe/c8/issues/325

Why is this important to fix? Using loaders and query string parameters is the only (reasonable) way to invalidate imports in esm. This makes it almost mandatory to use in test libraries.

Would be great if you could give some feedback! Cheers, L~

simlu avatar Dec 21 '23 00:12 simlu