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