Replies: 3 comments 2 replies
-
To debug this I would start by making sure CI environment matches with local one. Check that you have I haven't heard of similar issues before. Happy to look at minimal reproduction if you could provide one. |
Beta Was this translation helpful? Give feedback.
-
@jperetzIL did you get to the bottom of this or find any related issues? |
Beta Was this translation helpful? Give feedback.
-
I am using gitlab and we cache stuff for certain jobs, and gitlab downloads it on start of the job.
|
Beta Was this translation helpful? Give feedback.
-
Hi,
I have been dealing with this issue for a bit and haven't found a solution or anything about it online. I have just moved to vite and vitest from CRA and Jest. While most things were straight forward and worked great - I ran into an issue with testing coverage.
Here is my Vite config File
Currently when I run
vitest run --coverage
locally I receive the following coverage:But then when I run the same test through a github action:
I get this:
![Screenshot 2023-09-26 at 4 12 36 PM](https://private-user-images.githubusercontent.com/125289712/270785112-4318d4fb-4b55-433d-b14b-d596ad350c82.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyNTk5MzYsIm5iZiI6MTczOTI1OTYzNiwicGF0aCI6Ii8xMjUyODk3MTIvMjcwNzg1MTEyLTQzMThkNGZiLTRiNTUtNDMzZC1iMTRiLWQ1OTZhZDM1MGM4Mi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMVQwNzQwMzZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT00NmI5ZmIyZjQ0Yjc2ODQyN2IzZjRmYTg5NWMzNDgyMTFjNGJkNTA1YWJmMThmNmVjZjZhN2JmNmRhYjZjN2NmJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.3U8No68V_i0cIRVPRPcIoGTzZVY5-56LjrH29DRtaqo)
As you can see - the Branches coverage is off by .1% and causing it to fail. I tried this with v8 as well and it did the same thing, but by .4% instead.
Any thoughts on what I might be missing here?
Beta Was this translation helpful? Give feedback.
All reactions