Skip to content

whisperrrr/Frontend-Code-Stratege

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

1.编码策略

2.测试策略

2.1 单元测试

  • form相关组件
  • 无form相关组件

2.2 测试细节

  • 基本测试怎么写
    • 测试在做什么
    • 测试文件基本架构
    • 测试文件规范
  • 用户逻辑测试怎么写
    • 普通hooks怎么测
    • 有recoil里面的hooks怎么测
    • 两个hooks联合起来怎么测
  • Hook中异步测试怎么测试
  • API测试中怎么mock
    • nock
    • jest.doMock

2.3 UI测试

  • 为什么要对公共组件做UI测试
  • UI测试应该测什么
  • UI测试应该怎么写

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published