Skip to content

"Timed out while running tests" #3036

Answered by novemberborn
sculpt0r asked this question in Q&A

You must be logged in to vote

Timeouts occur when there is no single test passing for the timeout duration (defaulting to 10 seconds if I'm not mistaken). Essentially if your test suite isn't making progress, then AVA gives up.

async or not depends on what your test is actually doing. It sounds like it's synchronous (otherwise why would it pass without async?). Technically then the tests still run synchronously, it's just the outcome that is observed asynchronously.

I wonder if this is related to ts-node, #3031 suggests a timeout problem with ts-node. That's a little outside of AVA though.

Have you tried with precompiled files using @ava/typescript?

Replies: 14 comments 31 replies

You must be logged in to vote
0 replies

You must be logged in to vote
1 reply
@sculpt0r

Answer selected by sculpt0r

You must be logged in to vote
3 replies
@novemberborn

@sculpt0r

@novemberborn

You must be logged in to vote
1 reply
@novemberborn

You must be logged in to vote
0 replies

You must be logged in to vote
0 replies

You must be logged in to vote
0 replies

You must be logged in to vote
8 replies
@sculpt0r

@sculpt0r

@sculpt0r

@sculpt0r

@sculpt0r

You must be logged in to vote
10 replies
@sculpt0r

@novemberborn

@sculpt0r

@novemberborn

@sculpt0r

You must be logged in to vote
0 replies

You must be logged in to vote
7 replies
@sindresorhus

@novemberborn

@sculpt0r

@sculpt0r

@Sparticuz

You must be logged in to vote
1 reply
@novemberborn

You must be logged in to vote
0 replies

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
7 participants
Converted from issue

This discussion was converted from issue #3034 on May 29, 2022 15:14.