-
-
Notifications
You must be signed in to change notification settings - Fork 358
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
nyc breaks the test translated by ts-node #1270
Comments
Can you post an example of the ts-node errors or better yet a link to the log of a failed CI run? This is a difficult situation as it appears you have 4 transpilers running in your tests - ava is enabling babel, esm and ts-node, then nyc is enabling another copy of babel. Might be that you need to tell |
I didn't have a CI build link, but I will post an error report soon. I will try your solution too, but I've also tried c8 and it is working well. |
Here's the gist, generated using my repo KsRyY/bethlehem@ |
Still does not work well when using the babel provider of ava ( |
In my case (i'm writing API wrapper) i just increased ava testing timeout and @KsRyY Try increase timeout, maybe it helps you too |
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Link to bug demonstration repository
I used it in one of my project, the link is here
I wrote my test file in TypeScript and I transform them at runtime with
ts-node/register
. When I run ava without nyc everything works fine, but when I run ava with nyc, ts-node gave a lot of error.Expected Behavior
Run the tests as normal with not error.
Observed Behavior
ts-node gave a lot of strange error. I suppose that it is related to how nyc processes the test file
Troubleshooting steps
cache: false
in my nyc configEnvironment Information
The text was updated successfully, but these errors were encountered: