The test pyramid describes a common shape, and the real goal is a test suite that catches bugs efficiently —…