# code review & testing
// [21] real interview questions. Answers and sources live in the practice app.
practice this topic- Walk me through how you review a pull request.(mid)
- What do you look for when reviewing someone else's code?(mid)
- Does a change have to be perfect before you approve it?(mid)
- A teammate sends you a 2000-line pull request. What do you do?(senior)
- You leave review comments and the author pushes back on all of them, refusing to make changes. How do you handle it?(senior)
- How do you keep code reviews fast without rubber-stamping?(mid)
- How do you write code review comments that get acted on without demotivating the author?(mid)
- How do you test your code? Walk me through your personal testing workflow.(junior)
- How do you decide what to test and what not to test?(mid)
- Explain the test pyramid. When would you deviate from it?(mid)
- When do you mock a dependency and when do you use the real thing?(mid)
- How do you test code that talks to an external service or a database?(mid)
- What is a flaky test, and what is your strategy when a test suite becomes flaky?(senior)
- What makes a test good and maintainable?(junior)
- Tell me about the most difficult bug you fixed recently. How did you track it down?(mid)
- Have you found any bugs in our product? What would you improve?(junior)
- What role should static analysis and linters play alongside code review and tests?(mid)
- You inherit a legacy service with zero tests and you need to change it. What is your testing strategy?(senior)
- Your tests stub an external service. What stops the stub from drifting away from the real service — and what is a contract test?(senior)
- What is property-based testing, and when would you actually reach for it?(senior)
- How do you use code review to level up junior engineers without slowing the team down?(mid)