Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jest Async callback was not invoked within the 5000ms timeout specified by jest

// jest.config.js
module.exports = {
  // setupTestFrameworkScriptFile has been deprecated in
  // favor of setupFilesAfterEnv in jest 24
  setupFilesAfterEnv: ['./jest.setup.js']
}

// jest.setup.js
jest.setTimeout(30000)
 
PREVIOUS NEXT
Tagged: #jest #Async #callback #invoked #timeout #jest
ADD COMMENT
Topic
Name
6+7 =