Error: Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL. code example
Example: : Timeout - Async callback was not invoked within the 5000 ms timeout specified by jest.setTimeout.Timeout - Async callback was not invoked within the 5000 ms timeout specified by jest.setTimeout.Error:
// add this in your test
beforeEach(() => {
jest.setTimeout(8000)
})
afterAll(() => {
jest.clearAllTimers()
})