AkifumiSato / esbuild-jest-transform

14 stars 9 forks source link

Coverage issue #1

Closed kefniark closed 3 years ago

kefniark commented 3 years ago

Thanks for the work quite useful,

I've been trying to use jest with a esbuild project recently, and I tried few transformer out there without success.

yours seem to be the only one working, congrats 👍

But I still have one problem, it properly run tests and report image

But it doesnt seem to work with code coverage image

It's probably more related to Jest than this transformer, but just to ask, do you have any idea what can cause that ?

AkifumiSato commented 3 years ago

Thanks for the feedback! I also tried it and got the same result.

It's probably more related to Jest than this transformer, but just to ask, do you have any idea what can cause that ?

I'm sorry, I didn't understand why this happened, As you say, it's probably Jest's problem.

AkifumiSato commented 3 years ago

It seems that esbuild cannot be specified for Jest's coverageProvider. https://jestjs.io/docs/cli#--coverageproviderprovider

kefniark commented 3 years ago

Thanks for the feedback and glad you can reproduce it too,

I will try older version of jest to see if the behavior was the same in the past, and I will open an issue on their repo.

Thanks