summary refs log tree commit diff
path: root/api/scripts/globalSetup.js
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-09-18 01:49:36 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-09-18 01:49:36 +0200
commit69550e535e990ded1e6bd8763e4f48299f70584a (patch)
tree60632de7e16316a877e55c18c4bce00b0841968e /api/scripts/globalSetup.js
parent:pencil: add default route description to all routes (diff)
downloadserver-69550e535e990ded1e6bd8763e4f48299f70584a.tar.xz
:sparkles: generate test responses
Diffstat (limited to 'api/scripts/globalSetup.js')
-rw-r--r--api/scripts/globalSetup.js15
1 files changed, 0 insertions, 15 deletions
diff --git a/api/scripts/globalSetup.js b/api/scripts/globalSetup.js
deleted file mode 100644

index 98e70fb9..00000000 --- a/api/scripts/globalSetup.js +++ /dev/null
@@ -1,15 +0,0 @@ -const fs = require("fs"); -const path = require("path"); -const { FosscordServer } = require("../dist/Server"); -const Server = new FosscordServer({ port: 3001 }); -global.server = Server; -module.exports = async () => { - try { - fs.unlinkSync(path.join(__dirname, "..", "database.db")); - } catch {} - return await Server.start(); -}; - -// afterAll(async () => { -// return await Server.stop(); -// });