aboutsummaryrefslogtreecommitdiff
path: root/build/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'build/index.js')
-rw-r--r--build/index.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/build/index.js b/build/index.js
index 4dbe69a..30d2553 100644
--- a/build/index.js
+++ b/build/index.js
@@ -45,4 +45,6 @@ app.get('/leaderboard/:name', async (req, res) => {
app.get('/leaderboards', async (req, res) => {
res.json(await database_1.fetchAllLeaderboardsCategorized());
});
-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 :)'));