Tag

testing-library

1 views collected around this technical thread.

DevOps
DevOps
Dec 30, 2021 · Frontend Development

Rethinking Frontend Testing: Move Away from Implementation‑Detail Focus to Real‑User Behavior

This article explains why front‑end tests that concentrate on implementation details become fragile and time‑consuming, and argues for writing tests that mimic real user interactions using Testing Library, while recognizing that many small functions lack independent business value and should be tested at the UI level instead of as isolated unit tests.

Unit Testsfrontend testingreact-hooks
0 likes · 9 min read
Rethinking Frontend Testing: Move Away from Implementation‑Detail Focus to Real‑User Behavior
Ctrip Technology
Ctrip Technology
Jan 16, 2020 · Frontend Development

Comprehensive Guide to Unit Testing in React and React Native Projects

This article presents a complete tutorial on setting up and using Jest, Enzyme, and react‑hooks‑testing‑library for unit testing React and React Native applications, covering environment configuration, simple function tests, lifecycle hooks, mocking, snapshot testing, asynchronous tests, Redux and Hook testing, as well as coverage reporting and CI integration.

EnzymeFrontendReact Native
0 likes · 13 min read
Comprehensive Guide to Unit Testing in React and React Native Projects