我试图为react中的一个简单应用程序编写用于e2e自动化测试的Jest和傀儡代码。panel (10001ms)
: Timeout - Async callback was not invoked within the 10000mstimeout specified by jest.setTimeout.Timeout - Async callback was not invoked within the 10000ms timeout
在运行特定文件中的任何测试之前,我正在尝试运行一些异步函数。user = await new User(userObj).save(); // This is a mongoose document ...每当我在beforeAll函数中有什么内容时,我都会得到一个错误:
超时-异步回调没有在jest.setTimeout.Error指定的5000 ms超