V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
afeiche
V2EX  ›  Node.js

nodejs 测试框架

  •  
  •   afeiche · 2022-08-25 09:28:42 +08:00 · 4341 次点击
    这是一个创建于 582 天前的主题,其中的信息可能已经有所发展或是发生改变。

    不知道现在大家用啥做单元测试??

    12 条回复    2022-08-25 19:30:29 +08:00
    IvanLi127
        1
    IvanLi127  
       2022-08-25 09:33:48 +08:00
    Jest · 🃏 Delightful JavaScript Testing
    https://jestjs.io/zh-Hans/
    hua123s
        2
    hua123s  
       2022-08-25 09:49:30 +08:00
    @swc/jest 快的一批
    L1shen
        3
    L1shen  
       2022-08-25 10:30:31 +08:00
    vitest
    renhou
        4
    renhou  
       2022-08-25 10:36:15 +08:00
    jest
    KouShuiYu
        5
    KouShuiYu  
       2022-08-25 10:45:17 +08:00
    GreatAuk
        6
    GreatAuk  
       2022-08-25 10:58:33 +08:00
    vitest
    scyuns
        7
    scyuns  
       2022-08-25 11:08:49 +08:00
    原来有这么多测试框架呀
    Terry05
        8
    Terry05  
       2022-08-25 11:27:06 +08:00
    vitest
    magicdawn
        9
    magicdawn  
       2022-08-25 12:51:01 +08:00
    坚持 mocha + should.js 好多年
    molvqingtai
        10
    molvqingtai  
       2022-08-25 13:07:14 +08:00 via Android
    vitest 直接可以直接使用 edge runtime ,像 fetch 、formData 、stream 相关的 API 都不用找 polifyll 了,不要太爽
    zhuweiyou
        11
    zhuweiyou  
       2022-08-25 14:15:34 +08:00
    vitest 比 jest 快,但是我不写测试
    ada87
        12
    ada87  
       2022-08-25 19:30:29 +08:00
    https://japa.dev/

    Japa is an API-first testing framework. It focuses only on testing Node.js (backend) applications, thus resulting in a fast, small, and simple tests runner.
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5292 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 05:45 · PVG 13:45 · LAX 22:45 · JFK 01:45
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.