Skip to content

Latest commit

 

History

History
29 lines (23 loc) · 733 Bytes

README.md

File metadata and controls

29 lines (23 loc) · 733 Bytes

1.编码策略

2.测试策略

2.1 单元测试

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

2.2 测试细节

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

2.3 UI测试

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