-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
V8 Coverage fails #5532
Comments
Hello @digitalkaoz. Please provide a minimal reproduction using a GitHub repository or StackBlitz (you can also use examples). Issues marked with |
Without reproduction setup it's difficult to say what's going on here. Are your tests mocking |
Mh, will check, it worked with the latest 0.x vitest release and v8-coverage
Ari Perkkiö ***@***.***> schrieb am So., 14. Apr. 2024, 16:36:
… Without reproduction setup it's difficult to say what's going on here. Are
your tests mocking fs?
https://github.com/istanbuljs/v8-to-istanbul/blob/fcc2e35891f9034ba5d283477e6da15336cb7372/lib/v8-to-istanbul.js#L11-L18
—
Reply to this email directly, view it on GitHub
<#5532 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACHVV3FJRT5TLWPNUOIMTTY5KIANAVCNFSM6AAAAABGFJLVXSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANJUGA4DENBVHA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Mh, no, no mocking of FS can be found :/
Robert Schönthal ***@***.***> schrieb am So., 14. Apr.
2024, 19:29:
… Mh, will check, it worked with the latest 0.x vitest release and
v8-coverage
Ari Perkkiö ***@***.***> schrieb am So., 14. Apr. 2024,
16:36:
> Without reproduction setup it's difficult to say what's going on here.
> Are your tests mocking fs?
>
>
> https://github.com/istanbuljs/v8-to-istanbul/blob/fcc2e35891f9034ba5d283477e6da15336cb7372/lib/v8-to-istanbul.js#L11-L18
>
> —
> Reply to this email directly, view it on GitHub
> <#5532 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AACHVV3FJRT5TLWPNUOIMTTY5KIANAVCNFSM6AAAAABGFJLVXSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANJUGA4DENBVHA>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
|
I have the same problem. And here is simple reproduction on stackblitz: https://stackblitz.com/~/github.com/ejexxeffer/datepickertest |
Same here, I also have this issue. |
@ejexxeffer thanks for taking the extra mile, our project is so big that it would have taken me an probably extraordinary amount of work to synthesize a MRB |
Now that
|
then it wont work in vite5 (which defaults to ESM now) (at least with the proposed default setting |
Describe the bug
as you can see the tests are fine.
Reproduction
coverage is working perfectly fine with istanbul
from @ejexxeffer : https://stackblitz.com/~/github.com/ejexxeffer/datepickertest
System Info
environment (also fails in CI): ❯ pnpm --version 8.15.5 ❯ node --version v21.7.2 ❯ vite --version vite/5.2.8 darwin-arm64 node-v21.7.2
versions:
Used Package Manager
pnpm
Validations
The text was updated successfully, but these errors were encountered: