summary refs log tree commit diff
path: root/api/scripts/globalSetup.js
blob: 98e70fb98d3efb93210712b07c4a35f538e3df8b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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(__dirname, "..", "database.db"));
	} catch {}
	return await Server.start();
};

// afterAll(async () => {
// 	return await Server.stop();
// });