The test pyramid says you should have many unit tests, fewer integration tests, and a small number of E2E tests. It matters because it balances speed, cost, and confidence.
Pyramid is about feedback loops:
The goal is fast signal with minimal flakiness and maintenance.
Typical distribution:
70% unit / 20% integration / 10% E2E