Skip to content

"Timed out while running tests" #3036

Answered by novemberborn
sculpt0r asked this question in Q&A
Discussion options

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: 13 comments 31 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@sculpt0r
Comment options

Answer selected by sculpt0r
Comment options

You must be logged in to vote
3 replies
@novemberborn
Comment options

@sculpt0r
Comment options

@novemberborn
Comment options

Comment options

You must be logged in to vote
1 reply
@novemberborn
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
8 replies
@sculpt0r
Comment options

@sculpt0r
Comment options

@sculpt0r
Comment options

@sculpt0r
Comment options

@sculpt0r
Comment options

Comment options

You must be logged in to vote
10 replies
@sculpt0r
Comment options

@novemberborn
Comment options

@sculpt0r
Comment options

@novemberborn
Comment options

@sculpt0r
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
7 replies
@sindresorhus
Comment options

@novemberborn
Comment options

@sculpt0r
Comment options

@sculpt0r
Comment options

@Sparticuz
Comment options

Comment options

You must be logged in to vote
1 reply
@novemberborn
Comment options

Comment options

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
6 participants
Converted from issue

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