feat: replace console.log with events
This commit is contained in:
parent
96bf0456a1
commit
eb380f9403
10 changed files with 69 additions and 36 deletions
|
|
@ -24,6 +24,9 @@ test("launch game", { timeout: 0, tags: ["full", "forge"] }, async () => {
|
|||
});
|
||||
|
||||
instance.on("progress", console.log);
|
||||
instance.on("log", (step, msg) => {
|
||||
console.log(`[${step}] ${msg}`)
|
||||
})
|
||||
|
||||
await instance.install();
|
||||
const p = await instance.launch();
|
||||
|
|
|
|||
|
|
@ -24,6 +24,9 @@ test("launch game", { timeout: 0, tags: ["full", "vanilla"] }, async () => {
|
|||
});
|
||||
|
||||
instance.on("progress", console.log);
|
||||
instance.on("log", (step, msg) => {
|
||||
console.log(`[${step}] ${msg}`)
|
||||
})
|
||||
|
||||
await instance.install();
|
||||
const p = await instance.launch();
|
||||
|
|
|
|||
|
|
@ -20,6 +20,9 @@ test("launch game", { timeout: 0, tags: ["full", "forge"] }, async () => {
|
|||
});
|
||||
|
||||
instance.on("progress", console.log);
|
||||
instance.on("log", (step, msg) => {
|
||||
console.log(`[${step}] ${msg}`)
|
||||
})
|
||||
|
||||
await instance.install();
|
||||
const p = await instance.launch();
|
||||
|
|
|
|||
|
|
@ -20,6 +20,9 @@ test("launch game", { timeout: 0, tags: ["full", "forge"] }, async () => {
|
|||
});
|
||||
|
||||
instance.on("progress", console.log);
|
||||
instance.on("log", (step, msg) => {
|
||||
console.log(`[${step}] ${msg}`)
|
||||
})
|
||||
|
||||
await instance.install();
|
||||
const p = await instance.launch();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue