top | item 22293532

(no title)

onesmalldrop | 6 years ago

It's not debatable...

Unit tests are for testing individual components of your application (web or otherwise)

e2e or integration tests are for testing your application component/lib/api/whatever boundaries

discuss

order

ellius|6 years ago

Sure, but what do you count as a "component"? It varies by language, framework, platform, and pattern.

nohuhu|6 years ago

How do you test individual components in isolation if they depend on the global state store?

root_axis|6 years ago

That's a code smell. 99% of components in a project should rely on props.