summary refs log tree commit diff
path: root/api/jest/globalSetup.js
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-08-22 22:08:22 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-08-22 22:08:22 +1000
commit975c414434ee08622126bdeb4060532029413c18 (patch)
treea46b7f33a150963f6b8d3515225574610325713f /api/jest/globalSetup.js
parentMerge branch 'master' into fix/claim_accounts (diff)
parentMerge remote-tracking branch 'Puyodead1/patch/prettier-config' into staging (diff)
downloadserver-975c414434ee08622126bdeb4060532029413c18.tar.xz
Merge remote-tracking branch 'upstream/staging' into fix/claim_accounts
Diffstat (limited to '')
-rw-r--r--api/jest/globalSetup.js20
1 files changed, 0 insertions, 20 deletions
diff --git a/api/jest/globalSetup.js b/api/jest/globalSetup.js
deleted file mode 100644

index 520aa0e2..00000000 --- a/api/jest/globalSetup.js +++ /dev/null
@@ -1,20 +0,0 @@ -const { Config, initDatabase } = require("@fosscord/util"); -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(process.cwd(), "database.db")); - } catch {} - - await initDatabase(); - await Config.init(); - Config.get().limits.rate.disabled = true; - return await Server.start(); -}; - -// afterAll(async () => { -// return await Server.stop(); -// });