寫前端測試

前端測試的類型有:

  • Unit testing
  • Visual regression testing
  • Acceptance Testing
  • End to End Testing ( functional testing )
  • Snapshot Testing

不錯的工具:
jest-runner-groups
關注的工具:
cypress-react-unit-test

挑選工具:
https://react-hooks-testing-library.com/

參考文章:

Testing Overview
An introduction to frontend testing
What is Acceptance Testing? | Agile Alliance

What Is Defect Clustering and How Do You Defeat It?
解釋何為”Defect Clustering”
30天快速上手TDD

Fullstack React: Introduction to Testing
Visual Regression Testing is Stupid

TOP VISUAL REGRESSION TESTING TOOLS
Front End Testing: A Complete Conceptual Overview

Automated Frontend Testing

Common mistakes with React Testing Library

Testing Your Frontend Code: Part IV (Integration Testing)

Static vs Unit vs Integration vs E2E Testing for Frontend Apps

How They Test