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/Paper.ts

16 lines
616 B
TypeScript

import * as paper from "../src/paper";
describe("PaperMC", () => {
it("Install and Start", async function(){
this.timeout(Infinity);
await paper.installServer("latest");
const plugin = await paper.pluginManger();
await plugin.installPlugin("Geyser");
const serverManeger = await paper.startServer({maxFreeMemory: true});
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();
});
});