Which testing strategy reflects professional competency for a Node.js REST API?
-
A
Only test the UI layer manually in a browser
-
B
Combine unit tests for business logic, integration tests for routes, and end-to-end tests for critical flows
-
C
Write only end-to-end tests because they cover everything
-
D
Skip tests and rely on user feedback in production