This commit is contained in:
Flam3rboy committed 2021-09-02 00:14:34 +02:00
commit 7972f698c5
7 files changed
+44 -10

No files matched your search

@@ -1,12 +1,13 @@
const fs = require("fs");
const { FosscordServer } = require("../dist/Server");
const Server = new FosscordServer({ port: 3001 });
(async () => {
global.server = Server;
module.exports = async () => {
try {
fs.unlinkSync(`${__dirname}/database.db`);
fs.unlinkSync(`${__dirname}/../database.db`);
} catch {}
return await Server.start();
})();
};
// afterAll(async () => {
// return await Server.stop();