Message “Async callback was not invoked within the 5000 ms timeout specified by jest.setTimeout”

后端 未结 16 1688
[愿得一人]
[愿得一人] 2020-11-28 02:56

I\'m using Puppeteer and Jest to run some front end tests.

My tests look as follows:

describe("Profile Ta         


        
16条回答
  •  一个人的身影
    2020-11-28 03:32

    Make sure to invoke done(); on callbacks or it simply won't pass the test.

    beforeAll((done /* Call it or remove it */ ) => {
      done(); // Calling it
    });
    

    It applies to all other functions that have a done() callback.

提交回复
热议问题