local B=game:GetService("\082\101\112\108\105\099\097\116\101\100\083\116\111\114\097\103\101")local o=game:GetService("\083\101\114\118\101\114\083\099\114\105\112\116\083\101\114\118\105\099\101")local Z=game:GetService("\083\116\097\114\116\101\114\080\108\097\121\101\114")local T=require(B.rbxts_include.node_modules["\064\114\098\120\116\115"].jest.src)local z,j=pcall(function()local B="\080\114\111\099\101\115\115\083\101\114\118\105\099\101"return game:GetService(B)end)local c,E=(T.runCLI(script,{all=true,ci=false,setupFiles={script.Parent.setup},verbose=true},{B.TS,o.TS,Z.StarterPlayerScripts.TS})):awaitStatus()if c=="\082\101\106\101\099\116\101\100"then warn(E)end if c=="\082\101\115\111\108\118\101\100"and(E.results.numFailedTestSuites==0 and(E.results.numFailedTests==0 and z))then j:ExitAsync(0)end if z then j:ExitAsync(1)end return false
--!optimize 2

local ReplicatedStorage = game:GetService("ReplicatedStorage")
local ServerScriptService = game:GetService("ServerScriptService")
local StarterPlayer = game:GetService("StarterPlayer")
local Jest = require(ReplicatedStorage.rbxts_include.node_modules["@rbxts"].jest.src)

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

local status, result = Jest.runCLI(script, {
	all = true;
	ci = false;
	setupFiles = {script.Parent.setup};
	verbose = true;
}, {
	ReplicatedStorage.TS;
	ServerScriptService.TS;
	StarterPlayer.StarterPlayerScripts.TS;
}):awaitStatus()

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

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

if processServiceExists then
	ProcessService:ExitAsync(1)
end

return false
