diff options
Diffstat (limited to 'src/index.ts')
-rw-r--r-- | src/index.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/index.ts b/src/index.ts index 6976882..2c0f1ee 100644 --- a/src/index.ts +++ b/src/index.ts @@ -63,5 +63,6 @@ app.get('/leaderboards', async(req, res) => { }) - -app.listen(8080, () => console.log('App started :)')) +// only run the server if it's not doing tests +if (typeof global.it !== 'function') + app.listen(8080, () => console.log('App started :)')) |