Fix tests

This commit is contained in:
marked 2025-03-12 21:29:29 +01:00
parent 9bed4a8cb1
commit 26ead3a62e

View file

@ -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")