-
Notifications
You must be signed in to change notification settings - Fork 28
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
fix : do not record test-case while in test mode #46
base: main
Are you sure you want to change the base?
Conversation
e175d67
to
8903359
Compare
Hi @shreyanshshah27, CI is failing due to incorrect commit format. Please follow this format "fix: <COMMIT_MESSAGE>" |
Signed-off-by: Shreyansh Shah <[email protected]>
8903359
to
a170453
Compare
Hey @re-Tick I've made the commit name changes. |
integrations/express/middleware.ts
Outdated
@@ -139,6 +139,9 @@ export function afterMiddleware(keploy: Keploy, req: Request, res: Response) { | |||
return; | |||
} | |||
|
|||
if (process.env.KEPLOY_MODE=="test") { |
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.
Please use MODE_TEST constant intead of "test" here and use "equality without type coersion”.
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.
Fixed.
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.
Signed-off-by: Shreyansh Shah <[email protected]>
Hey @shreyanshshah27, Please add link to this PR in GSOC/2023 Task List. |
No description provided.