You are working on an Express.js-based web github video

 ·  PT1H46M27S  ·  EN

copilot-gh-300 video for you are working on an Express.js-based web application that has basic integration tests for the /login and /register API endpoints. The

Full Certification Question

You are working on an Express.js-based web application that has basic integration tests for the /login and /register API endpoints. The existing tests cover successful login and registration scenarios but fail to handle edge cases like invalid inputs, missing fields, and rate limiting. You decide to enhance the test suite by using GitHub Copilot to improve test effectiveness. test ( 'should return 200 on successful login' , async () => { const response = await request ( app ). post ( '/login' ). send ({ username : 'validUser' , password : 'validPass' }); expect ( response . statusCode ). toBe ( 200 ); }); How can GitHub Copilot help improve test coverage for these edge cases?