Jest 是否提供像 Mocha 中那样的任何类型的“待定测试”?
Mocha 的 pending tests让我们编写在设计测试套件时有用的占位符测试:
describe('pending tests', function() {
it('should be a real test someday');
});
挂起的测试不会被 jest-codemods 转换并通过不变。
最佳答案
自从给出上述答案后,情况发生了变化。 .skip
在技术上不是待定测试。 Jest 现在提供 test.todo("description")
没有回调来声明测试尚未编写 ( ref )。
关于mocha.js - Jest 中的未决测试?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51225854/