question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Timeout - Async callback was not invoked within the 500000ms timeout specified by jest.setTimeout.

See original GitHub issue

What is the current behavior?

I am getting Timeout - Async callback was not invoked within the 500000ms timeout specified by jest.setTimeout.

Please provide your exact Jest configuration

My testing is currently running inside docker container.

test

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6

github_iconTop GitHub Comments

6reactions
thymikeecommented, Mar 12, 2018

This is not an actionable issue report. Please send a better description of what you want to achieve and provide a repro.

1reaction
PatNeedhamcommented, Jun 19, 2018

@thymikee I am facing a similar error message when running a Jest test: Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.

My test looks like this:

describe('invalid nonces', () => {
  let msg = 'blah blah blah'
  it(`Should have error message ${msg}`, async (done) => {
    let errors = getErrors(exampleResult)
    console.log("errors: " + JSON.stringify(errors, null, 2))
    let filteredErrors = errors.filter(err => err.message == msg)
    console.log('filteredErrors: ' + JSON.stringify(filteredErrors, null, 2))
    expect(errors.length).toBeGreaterThan(0)
    expect(filteredErrors.length).toEqual(1)
    done()
  }, 10000)
})

My assumption is the Async callback being referred to in the error must be something different from the done callback variable I’m passing to this test. How could I find out what the Async callback is referring to?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Message "Async callback was not invoked within the 5000 ms ...
In my case only putting jest.setTimeOut(10000) in describe helped me. Neither putting it inside test function body, nor specifying timeout as a test...
Read more >
Async callback was not invoked within the 5000ms timeout not ...
Bug Report Jest is not showing which on which line the timeout is happening.
Read more >
- Async callback was not invoked within the 5000ms timeout ...
Answers related to “- Async callback was not invoked within the 5000ms timeout specified by jest.setTimeout.Timeout - Async callback was not invoked within...
Read more >
[Help] Timeout - Async callback was not invoked - Reddit
Timeout - Async callback was not invoked within the 5000 ms timeout specified by jest.setTimeout.Timeout - Async callback was not invoked ...
Read more >
Async callback was not invoked within the 5000ms timeout ...
Got Timeout – Async callback was not invoked within the 5000ms timeout specified by jest.setTimeout. apijestjstestingweb-api-testing. I have problem with ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found