afeiche
V2EX  ›  Node.js

nodejs 测试框架

  •  
  •   afeiche · Aug 25, 2022 · 5345 views
    This topic created in 1374 days ago, the information mentioned may be changed or developed.

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

    12 replies    2022-08-25 19:30:29 +08:00
    IvanLi127
        1
    IvanLi127  
       Aug 25, 2022
    Jest · 🃏 Delightful JavaScript Testing
    https://jestjs.io/zh-Hans/
    hua123s
        2
    hua123s  
       Aug 25, 2022
    @swc/jest 快的一批
    L1shen
        3
    L1shen  
       Aug 25, 2022
    vitest
    renhou
        4
    renhou  
       Aug 25, 2022
    jest
    KouShuiYu
        5
    KouShuiYu  
       Aug 25, 2022
    GreatAuk
        6
    GreatAuk  
       Aug 25, 2022
    vitest
    scyuns
        7
    scyuns  
       Aug 25, 2022
    原来有这么多测试框架呀
    Terry05
        8
    Terry05  
       Aug 25, 2022
    vitest
    magicdawn
        9
    magicdawn  
       Aug 25, 2022
    坚持 mocha + should.js 好多年
    molvqingtai
        10
    molvqingtai  
       Aug 25, 2022 via Android
    vitest 直接可以直接使用 edge runtime ,像 fetch 、formData 、stream 相关的 API 都不用找 polifyll 了,不要太爽
    zhuweiyou
        11
    zhuweiyou  
       Aug 25, 2022
    vitest 比 jest 快,但是我不写测试
    ada87
        12
    ada87  
       Aug 25, 2022
    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.
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1167 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 50ms · UTC 17:51 · PVG 01:51 · LAX 10:51 · JFK 13:51
    ♥ Do have faith in what you're doing.