Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有 2 个测试文件,test1.js 和 test2.js。我想按顺序运行它们,测试 1 然后运行 test2。有没有办法做到这一点?
使用runInBandJest 选项(runInBand显然,不关心测试的顺序。如果您需要保留测试的顺序,您可能做错了)。
runInBand