We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 205d8c1 commit 30d2091Copy full SHA for 30d2091
index.js
@@ -25,12 +25,14 @@ Sentry.init({ dsn: process.env.SENTRY_DSN })
25
module.exports = async (robot) => {
26
robot.route('/').get('/health', (req, res) => res.send('OK'))
27
28
- process.on('uncaughtException', (e) => {
29
- robot.log.error(e)
30
- })
31
- process.on('unhandledRejection', (e) => {
32
33
+ if (process.env.NODE_ENV !== 'test') {
+ process.on('uncaughtException', (e) => {
+ robot.log.error(e)
+ })
+ process.on('unhandledRejection', (e) => {
34
35
+ }
36
37
const queue = new Queue('issues', {
38
removeOnSuccess: true,
0 commit comments