From 26ead3a62e3d34c09846eacfe13775581fddc671 Mon Sep 17 00:00:00 2001 From: marked <iczerwony98@gmail.com> Date: Wed, 12 Mar 2025 21:29:29 +0100 Subject: [PATCH] Fix tests --- src/test.luau | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/test.luau b/src/test.luau index c12686d..ce5c398 100644 --- a/src/test.luau +++ b/src/test.luau @@ -39,16 +39,21 @@ local function test(origin: string): result.Identity<boolean> end fs.writeDir(`{origin}/test`) + if fs.metadata(`{origin}/tools`).exists then + fs.removeDir(`{origin}/tools`) + end + fs.writeDir(`{origin}/tools`) + progress:nextStage() -- fetch do - local contents = shared.fetch_raw("test/testkit.luau") + local contents = shared.fetch_raw("tools/testkit.luau") if not contents.ok then progress:stop() - stdio.ewrite(`🔥 Couldn't get the latest source for test/testkit.luau:\n{contents.err}\n`) - return result(false, "Couldn't get the latest source for test/testkit.luau.") + stdio.ewrite(`🔥 Couldn't get the latest source for tools/testkit.luau:\n{contents.err}\n`) + return result(false, "Couldn't get the latest source for tools/testkit.luau.") end - fs.writeFile(`{origin}/test/testkit.luau`, contents.val) + fs.writeFile(`{origin}/tools/testkit.luau`, contents.val) end do local contents = shared.fetch_raw("test/tests.luau")