This repository has been archived on 2024-01-16. You can view files and clone it, but cannot push or open issues or pull requests.
Files
Maneger/tests/Spigot.ts

16 lines
599 B
TypeScript

import * as spigot from "../src/spigot";
describe("Spigot", () => {
it("Install and Start", async function(){
this.timeout(Infinity);
await spigot.installServer("latest");
const plugin = await spigot.pluginManger();
await plugin.installPlugin("Geyser");
const serverManeger = await spigot.startServer();
serverManeger.on("log_stdout", console.log);
serverManeger.on("log_stderr", console.info);
serverManeger.on("portListening", console.log);
serverManeger.once("serverStarted", () => serverManeger.stopServer());
return serverManeger.waitExit();
});
});