blob: 76cd8e0dd25e77826c1a6ac24623b4a9f5ef1fc5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
const fs = require("fs");
const { FosscordServer } = require("../dist/Server");
const Server = new FosscordServer({ port: 3001 });
global.server = Server;
module.exports = async () => {
try {
fs.unlinkSync(`${__dirname}/../database.db`);
} catch {}
return await Server.start();
};
// afterAll(async () => {
// return await Server.stop();
// });
|