我正在尝试为一个模块创建一个简单的测试。我在一个模块中获得了一些firestore触发器(参见下面的模块文件)。在onDelete触发器中,我只想测试一下是否调用了deleteColletion。为此,我只需模拟出deleteCollection函数。在我的测试中(请参见测试文件中的onDelete should also delete the sub-collections tr
我试图使用jest.useFakeTimers()使我的firebase + jest测试在处理日期和超时时保持稳定。但是,如果我试图从模拟数据库中读取任何内容,测试就会超时,并抛出Exceeded timeout of 5000 ms for a test。Github repro:import * as admin from "firebase-admin";
// jest</