Skip to content

Commit a170453

Browse files
fix: do not record tc when in test mode
Signed-off-by: Shreyansh Shah <shreyansh_shah@yahoo.com>
1 parent 88691f5 commit a170453

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

integrations/express/middleware.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,9 @@ export function afterMiddleware(keploy: Keploy, req: Request, res: Response) {
139139
return;
140140
}
141141

142+
if (process.env.KEPLOY_MODE=="test") {
143+
return res
144+
}
142145
// req.headers
143146
// Since, JSON.stingify trims spaces. Therefore, content-length of request header should be updated
144147
req.headers["content-length"] = JSON.stringify(

0 commit comments

Comments
 (0)