local e=game:GetService("\082\101\112\108\105\099\097\116\101\100\083\116\111\114\097\103\101")local M=(require("\064\080\097\099\107\097\103\101\115\047\074\101\115\116")).runCLI local v,B=pcall(function()return game:GetService("\080\114\111\099\101\115\115\083\101\114\118\105\099\101")end)local w,b=(M(e.Packages.Project,{verbose=false;ci=false},{e.Packages.Project})):awaitStatus()if w=="\082\101\106\101\099\116\101\100"then print(b)end if w=="\082\101\115\111\108\118\101\100"and(b.results.numFailedTestSuites==0 and b.results.numFailedTests==0)then if v then B:ExitAsync(0)end end if v then B:ExitAsync(1)end return nil
local ReplicatedStorage = game:GetService("ReplicatedStorage")

local runCLI = require("@Packages/Jest").runCLI

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

local status, result = runCLI(ReplicatedStorage.Packages.Project, {
	verbose = false,
	ci = false,
}, { ReplicatedStorage.Packages.Project }):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
