Replies: 4 comments 6 replies
-
When you remove one line, the test worker exits with a non-zero exit code. That's what AVA's looking for. The timeout is triggered when there is no activity from the worker. When I set the timeout to 20 seconds ( I'm inclined to say this is something awry with |
Beta Was this translation helpful? Give feedback.
-
I was having this problem while using typescript ES modules, Adding |
Beta Was this translation helpful? Give feedback.
-
After testing, neither the use of |
Beta Was this translation helpful? Give feedback.
-
Something called TSX just came out. Its like ts-node but only uses esbuild to strip out the types instead of checking them. I swapped the ava node options to |
Beta Was this translation helpful? Give feedback.
-
When I run this test:
Instead of reporting a compilation error, I get this:
If I remove one of the declarations, I get the following, as expected:
It seems there's some threshold (maybe the amount of
tsc
output?) that's causing ava to time out rather than report the error.This occurs when using the
ts-node/register
TypeScript approach (https://github.com/avajs/ava/blob/main/docs/recipes/typescript.md#for-packages-without-type-module).I've created a minimal reproducible example here: https://github.com/paulgb/ava-timeout-issue-repro
Beta Was this translation helpful? Give feedback.
All reactions