V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Leon6868

前端如何做单元测试?

  •  
  •   Leon6868 · Jul 18, 2025 · 1795 views
    This topic created in 283 days ago, the information mentioned may be changed or developed.

    比如路由、动画、表单等,大家都是如何解决的呢?

    3 replies    2025-07-22 14:27:42 +08:00
    MuscleOf2016
        1
    MuscleOf2016  
       Jul 18, 2025
    UI 测试最麻烦最没必要,把工具库什么的做一下把。或者没有业务逻辑的 ui 组件可以做下。参考现在开源的很多 ui 组件库。
    snowfuck
        2
    snowfuck  
       Jul 18, 2025
    cypress ?
    gorvey
        3
    gorvey  
       Jul 22, 2025
    storybook
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1196 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 45ms · UTC 18:02 · PVG 02:02 · LAX 11:02 · JFK 14:02
    ♥ Do have faith in what you're doing.