- if you are a senior engineer, it is your responsibility to also take a call whether:
- what should be the must-have test case?
- what should be good to have a test case?
- what should be the no need or we skip that?
- you can't push the code, if the portion of the code is not tested, some critical piece of your application should always be tested before even going to production.
popular interview topics:
- write a code for given test cases.
- how to test a given utility.
- e2e test case scenarios.
- test your own code.
don't write test cases saying that the function is to be defined. so people who know, how to know this very well don't write test cases for the sake of code coverage.
Jest
End-to-End Testing.