跳过测试文件 Jest 中的一项测试 [英] Skip one test in test file Jest
本文介绍了跳过测试文件 Jest 中的一项测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用 Jest 框架并有一个测试套件.我想关闭/跳过我的一项测试.
I'm using Jest framework and have a test suite. I want to turn off/skip one of my tests.
谷歌搜索文档没有给我答案.
Googling documentation doesn't give me answers.
您知道要检查的答案或信息来源吗?
Do you know the answer or source of information to check?
推荐答案
我在这里找到了答案
test('it is raining', () => {
expect(inchesOfRain()).toBeGreaterThan(0);
});
test.skip('it is not snowing', () => {
expect(inchesOfSnow()).toBe(0);
});
这篇关于跳过测试文件 Jest 中的一项测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文