local q=script.Parent.SignalTest local O,S=pcall(function()return game:GetService("\080\114\111\099\101\115\115\083\101\114\118\105\099\101")end)local Y=q.Packages if not Y then(game:GetService("\084\101\115\116\083\101\114\118\105\099\101")):Error("\073\110\118\097\108\105\100 \080\097\099\107\097\103\101 \099\111\110\102\105\103\117\114\097\116\105\111\110\046 \084\114\121 \114\117\110\110\105\110\103 \096\114\111\116\114\105\101\118\101 \105\110\115\116\097\108\108\096 \116\111 \114\101\109\101\100\121\046")S:ExitAsync(1)end local u=(require(Y.Dev.Jest)).runCLI local z,g=(u(Y.Signal,{},{Y.Signal})):awaitStatus()if z=="\082\101\106\101\099\116\101\100"then print(g)end if z=="\082\101\115\111\108\118\101\100"and(g.results.numFailedTestSuites==0 and g.results.numFailedTests==0)then if O then S:ExitAsync(0)end end if O then S:ExitAsync(1)end
local Root = script.Parent.SignalTest
local processServiceExists, ProcessService = pcall(function()
	return game:GetService("ProcessService")
end)

local Packages = Root.Packages
if not Packages then
	game:GetService("TestService"):Error("Invalid Package configuration. Try running `rotrieve install` to remedy.")
	ProcessService:ExitAsync(1)
end

local runCLI = require(Packages.Dev.Jest).runCLI

local status, result = runCLI(Packages.Signal, {}, { Packages.Signal }):awaitStatus()

if status == "Rejected" then
	print(result)
end

if status == "Resolved" and result.results.numFailedTestSuites == 0 and result.results.numFailedTests == 0 then
	if processServiceExists then
		ProcessService:ExitAsync(0)
	end
end

if processServiceExists then
	ProcessService:ExitAsync(1)
end
