This commit is contained in:
Flam3rboy
2021-09-02 00:14:34 +02:00
7 changed files with 44 additions and 10 deletions
@@ -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();