afeiche
V2EX  ›  Node.js

nodejs 测试框架

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

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

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