Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] coverage does not detect .svelte files with jest v25 #1

Closed
ksewo opened this issue Feb 13, 2020 · 5 comments
Closed

[Bug] coverage does not detect .svelte files with jest v25 #1

ksewo opened this issue Feb 13, 2020 · 5 comments
Labels
bug Something isn't working

Comments

@ksewo
Copy link

ksewo commented Feb 13, 2020

Coverage does not work for .svelte files in v25, but it works fine for v24.

@mihar-22
Copy link
Collaborator

mihar-22 commented Feb 14, 2020

I know a lot of people have been having issues generating coverage reports for .svelte files. If it works in v24 but not v25 then it probably has to do with Jest. Here is a related issue for Vue (jestjs/jest#9490).

@mihar-22
Copy link
Collaborator

@ksewo do you get an error or does it simply not include the files in the coverage report?

@mihar-22 mihar-22 added the bug Something isn't working label Feb 14, 2020
@ksewo
Copy link
Author

ksewo commented Feb 14, 2020

@mihar-22 I do not get any error, just svelte files are not included into coverage. With jest v24 it is included, but still svelte files with <style> (atleast for me using svelte-preprocess and node-sass) are not included

@mihar-22
Copy link
Collaborator

Updated comment above as I believe the issue is with Jest not this library, closing the issue for now until we find out more.

@marekdedic
Copy link

Hi,
I am still getting this error on jest v27, does it work for you?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants