fix: make modrinth test downloads the java version needed for the pack
This commit is contained in:
parent
2cf9f73ce9
commit
3fbb2cdb4b
2 changed files with 15 additions and 12 deletions
|
|
@ -10,7 +10,10 @@ const gameRoot = path.join(import.meta.dirname, "..", "temp");
|
|||
test("launch game", { timeout: 0, tags: ["full", "modrinth"] }, async () => {
|
||||
const javaManager = new RuntimeManager(path.join(gameRoot, "java"));
|
||||
javaManager.on("progress", console.log)
|
||||
const java = await javaManager.use(await getJavaComponent("${version}"))
|
||||
const modpack =
|
||||
await importModrinthModpack("${modpack_url}", "url")
|
||||
const java = await javaManager.use(await getJavaComponent(modpack.version))
|
||||
|
||||
|
||||
const instance = new Instance({
|
||||
auth: offlineAuth("player"),
|
||||
|
|
@ -18,7 +21,7 @@ test("launch game", { timeout: 0, tags: ["full", "modrinth"] }, async () => {
|
|||
javaExecutable: java,
|
||||
ram: { max: "4G", min: "4G" }
|
||||
},
|
||||
await importModrinthModpack("${modpack_url}", "url")
|
||||
modpack
|
||||
);
|
||||
|
||||
instance.on("progress", console.log);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue