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.
茉莉花中是否有相当于:
expect(true).toBe(false)
那么单元测试在达到这个值时会失败吗?
我抛出错误。当我创建了尚未实现的新测试功能时,我通常会这样做。
it('should test something when I have implemented it', function() { throw new Error('Not implemented yet'); });
这使您可以使用任何您想要的解释。