Evan Plaice
evanplaice.bsky.social
Evan Plaice
@evanplaice.bsky.social
React sucks at unit/integration testing b/c React itself is a 'God Object' anti-pattern.

Ie. you can't test any of its parts individually without bringing in the whole framework.

In React only E2E testing is feasibly worth the effort.
November 12, 2024 at 7:31 PM
E2E drives a headless browser and mimics User interaction

Integration tests functions/systems directly. Including external resources (ex DB).

Unit tests functions directly but mocks/patches all external resources.
November 12, 2024 at 7:27 PM