Skip to content

Commit

Permalink
🧪 fix borked tests pt 2
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlanshoesmith committed Dec 15, 2024
1 parent f3578b4 commit 19bf8f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ app.post('/auth/otp/generate', async (req: Request, res: Response) => {
});
}

if (process.env['CI']) {
if (process.env['NODE_ENV'] === 'test') {
return res.status(200).json({ message: token });
}
return res.status(200).json({ message: 'ok' });
Expand Down

0 comments on commit 19bf8f4

Please sign in to comment.