This pull request introduces changes across various test files to incorporate the use of JWT tokens for authentication in test cases. This adjustment ensures that all test scenarios are executed in an authenticated context, reflecting a more realistic use case scenario as in production.
Summary
Added a before hook in test/bookCategory.test.js, test/booksByAuthor.test.js, and test/booksSearch.test.js to log in and retrieve a JWT token before running tests.
Modified existing test cases in these files to include an Authorization header, using the retrieved JWT token for making authenticated requests.
Ensured that all tests are now running under authenticated conditions, which aligns with the application's security requirements.
Fixes #79.
π Latest improvements to Sweep:
New dashboard launched for real-time tracking of Sweep issues, covering all stages from search to coding.
Integration of OpenAI's latest Assistant API for more efficient and reliable code planning and editing, improving speed by 3x.
PR Feedback (click)
Description
This pull request introduces changes across various test files to incorporate the use of JWT tokens for authentication in test cases. This adjustment ensures that all test scenarios are executed in an authenticated context, reflecting a more realistic use case scenario as in production.
Summary
before
hook intest/bookCategory.test.js
,test/booksByAuthor.test.js
, andtest/booksSearch.test.js
to log in and retrieve a JWT token before running tests.Authorization
header, using the retrieved JWT token for making authenticated requests.Fixes #79.
π Latest improvements to Sweep:
π‘ To get Sweep to edit this pull request, you can:
This is an automated message generated by Sweep AI.