V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
zficode
V2EX  ›  Visual Studio Code

jest 测试用例问题

  •  
  •   zficode · 122 天前 · 868 次点击
    这是一个创建于 122 天前的主题,其中的信息可能已经有所发展或是发生改变。

    在使用 jest 编写测试用例的过程中,会编写某些代码测试库的 API ,只是为了熟悉一些库的使用,并不是测试自己编写的功能。 在这里,我可以很方便的通过 vscode 插件点击 run 去运行,但是我现在不希望全局运行所有的测试用例时执行这个测试用例。

    目前已知的有 test.skip API 可以跳过测试,但是这样会导致 vscode 的 run 按钮失效:

    test.skip();
    
    1 条回复    2023-12-27 14:37:57 +08:00
    April5
        1
    April5  
       122 天前
    testPathIgnorePatterns
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2533 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 15:42 · PVG 23:42 · LAX 08:42 · JFK 11:42
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.