local u=game:GetService("\082\101\112\108\105\099\097\116\101\100\083\116\111\114\097\103\101")local z=u.Packages local C=(require(z.Dev.Jest)).runCLI local N,Y=pcall(function()return game:GetService("\080\114\111\099\101\115\115\083\101\114\118\105\099\101")end)local j,h=(C(u,{verbose=_G.verbose=="\116\114\117\101",ci=_G.CI=="\116\114\117\101",updateSnapshot=_G.UPDATESNAPSHOT=="\116\114\117\101"},{z.ApolloClient})):awaitStatus()if j=="\082\101\106\101\099\116\101\100"then print(h)end if j=="\082\101\115\111\108\118\101\100"and(h.results.numFailedTestSuites==0 and h.results.numFailedTests==0)then if N then Y:ExitAsync(0)end end if N then Y:ExitAsync(1)end return nil
local Root = game:GetService("ReplicatedStorage")

local Packages = Root.Packages

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

local processServiceExists, ProcessService = pcall(function()
	return game:GetService("ProcessService")
end)

local status, result = runCLI(Root, {
	verbose = _G.verbose == "true",
	ci = _G.CI == "true",
	updateSnapshot = _G.UPDATESNAPSHOT == "true"
}, { Packages.ApolloClient }):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

return nil