-
Notifications
You must be signed in to change notification settings - Fork 90
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
Different results when using GitHub Actions and TypeScript #522
Comments
This comment was marked as resolved.
This comment was marked as resolved.
What version of tsx are you using? I came across this issue today and it was driving me crazy because it was working fine just last week. I started backing out commits and reverting the tsx upgrade I did fixed it. Trying to use a tsx version above |
Thanks, @Hoho5000 🙋🏻♂️
|
Oh, in fact the issue comes from tsx. Related |
ubuntu-latest
)For context, the project is a test runner created using TypeScript and the tests are run without compile the
.ts
files.The Issue
ubuntu-latest
CI, it shows100%
for absolutely everything.Debugging
1. Remove my Test Runner
To check if this behavior was being caused by my test runner, I removed it and tried to do the same using popular testing tools, including the native from Node.js 21.
2. Change from tsx to ts-node
Just the same.
3. Compile TypeScript
Yes, by compiling it to
.js
now it works for both the environments.4. Using a Docker Container
I tried to test it using a
node:lts-alpine
for both local and remote environments.Also worked, now without compile TypeScript for both, but...
Even ensuring that all coverage files exist by mounting a root volume to write the coverage results and upload them to Codecov, the Codecov finds the coverage data, but doesn't upload them and emit:
unknown status
.Unfortunately, I don't know how to reproduce this behavior, since everything works locally.
A CI result to illustrate:
The text was updated successfully, but these errors were encountered: