-
Notifications
You must be signed in to change notification settings - Fork 265
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add unit tests for authentication middelware #2254
feat: add unit tests for authentication middelware #2254
Conversation
Are tests not working without importing config because it is a global variable? |
@pankajjs I tried running it without the import, but I have been getting |
Then how is it running before? @MayankBansal12 |
I have been facing this error while importing the authMiddleware file No other test files seems to using the same which could be one of the reasons why it was running before. |
Left few comments @MayankBansal12 |
Will fix the issues mentioned |
@pankajjs Added a new commit making the changes mentioned above. Have a look. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM ✅
* feat: add unit tests for authentication middelware * fix: add missing config import statement * feat: add more expectation for test cases * fix: refactor set cookies and add assertions in stubs
Date: 17-11-2024
Developer Name: Mayank Bansal
Issue Ticket Number
Description
authenticate.test.js
Documentation Updated?
Under Feature Flag
Database Changes
Breaking Changes
Development Tested?
Screenshots
Test Coverage
Screenshot 1
Screenshot 2