local D=script.Parent.Parent.Parent.Parent.TestRunner local B=require(D.Dev.JestGlobals)local c=B.expect local z=B.beforeEach local G=B.beforeAll local H=B.describe local V=B.it local u=require(script.Parent.Parent.Parent.matchers.toErrorDev)local p=require(script.Parent.Parent.Parent.matchers.toWarnDev)local Y G(function()c.extend({toErrorDev=u;toWarnDev=p})end)z(function()local B=require(D.Dev.LuauPolyfill)Y=B.console end)H("\116\111\069\114\114\111\114\068\101\118",function()V("\100\111\101\115 \110\111\116 \102\097\105\108 \105\102 \097 \119\097\114\110\105\110\103 \099\111\110\116\097\105\110\115 \097 \115\116\097\099\107",function()(c(function()if _G.__DEV__ then Y.error("\072\101\108\108\111\n    \105\110 \100\105\118")end end)).toErrorDev("\072\101\108\108\111")end)V("\100\111\101\115 \110\111\116 \102\097\105\108 \105\102 \097\108\108 \119\097\114\110\105\110\103\115 \099\111\110\116\097\105\110 \097 \115\116\097\099\107",function()(c(function()if _G.__DEV__ then Y.error("\072\101\108\108\111\n    \105\110 \100\105\118")Y.error("\071\111\111\100 \100\097\121\n    \105\110 \100\105\118")Y.error("\066\121\101\n    \105\110 \100\105\118")end end)).toErrorDev({"\072\101\108\108\111";"\071\111\111\100 \100\097\121";"\066\121\101"})end)V("\100\111\101\115 \110\111\116 \102\097\105\108 \105\102 \119\097\114\110\105\110\103\115 \119\105\116\104\111\117\116 \115\116\097\099\107 \101\120\112\108\105\099\105\116\108\121 \111\112\116 \111\117\116",function()(c(function()if _G.__DEV__ then Y.error("\072\101\108\108\111")end end)).toErrorDev("\072\101\108\108\111",{withoutStack=true});(c(function()if _G.__DEV__ then Y.error("\072\101\108\108\111")Y.error("\071\111\111\100 \100\097\121")Y.error("\066\121\101")end end)).toErrorDev({"\072\101\108\108\111","\071\111\111\100 \100\097\121","\066\121\101"},{withoutStack=true})end)V("\100\111\101\115 \110\111\116 \102\097\105\108 \119\104\101\110 \101\120\112\101\099\116\101\100 \115\116\097\099\107-\108\101\115\115 \119\097\114\110\105\110\103 \110\117\109\098\101\114 \109\097\116\099\104\101\115 \116\104\101 \097\099\116\117\097\108 \111\110\101",function()(c(function()if _G.__DEV__ then Y.error("\072\101\108\108\111\n    \105\110 \100\105\118")Y.error("\071\111\111\100 \100\097\121")Y.error("\066\121\101\n    \105\110 \100\105\118")end end)).toErrorDev({"\072\101\108\108\111";"\071\111\111\100 \100\097\121";"\066\121\101"},{withoutStack=1})end)if _G.__DEV__ then local function D(D,B)(c(D)).toThrow(B)end V("\102\097\105\108\115 \105\102 \097 \119\097\114\110\105\110\103 \100\111\101\115 \110\111\116 \099\111\110\116\097\105\110 \097 \115\116\097\099\107",function()D(function()(c(function()Y.error("\072\101\108\108\111")end)).toErrorDev("\072\101\108\108\111")end,"\082\101\099\101\105\118\101\100 \119\097\114\110\105\110\103 \117\110\101\120\112\101\099\116\101\100\108\121 \100\111\101\115 \110\111\116 \105\110\099\108\117\100\101 \097 \099\111\109\112\111\110\101\110\116 \115\116\097\099\107")end)V("\102\097\105\108\115 \105\102 \115\111\109\101 \119\097\114\110\105\110\103\115 \100\111 \110\111\116 \099\111\110\116\097\105\110 \097 \115\116\097\099\107",function()D(function()(c(function()Y.error("\072\101\108\108\111\n    \105\110 \100\105\118")Y.error("\071\111\111\100 \100\097\121\n    \105\110 \100\105\118")Y.error("\066\121\101")end)).toErrorDev({"\072\101\108\108\111";"\071\111\111\100 \100\097\121","\066\121\101"})end,"\082\101\099\101\105\118\101\100 \119\097\114\110\105\110\103 \117\110\101\120\112\101\099\116\101\100\108\121 \100\111\101\115 \110\111\116 \105\110\099\108\117\100\101 \097 \099\111\109\112\111\110\101\110\116 \115\116\097\099\107")D(function()(c(function()Y.error("\072\101\108\108\111")Y.error("\071\111\111\100 \100\097\121\n    \105\110 \100\105\118")Y.error("\066\121\101\n    \105\110 \100\105\118")end)).toErrorDev({"\072\101\108\108\111","\071\111\111\100 \100\097\121","\066\121\101"})end,"\082\101\099\101\105\118\101\100 \119\097\114\110\105\110\103 \117\110\101\120\112\101\099\116\101\100\108\121 \100\111\101\115 \110\111\116 \105\110\099\108\117\100\101 \097 \099\111\109\112\111\110\101\110\116 \115\116\097\099\107")D(function()(c(function()Y.error("\072\101\108\108\111\n    \105\110 \100\105\118")Y.error("\071\111\111\100 \100\097\121")Y.error("\066\121\101\n    \105\110 \100\105\118")end)).toErrorDev({"\072\101\108\108\111","\071\111\111\100 \100\097\121";"\066\121\101"})end,"\082\101\099\101\105\118\101\100 \119\097\114\110\105\110\103 \117\110\101\120\112\101\099\116\101\100\108\121 \100\111\101\115 \110\111\116 \105\110\099\108\117\100\101 \097 \099\111\109\112\111\110\101\110\116 \115\116\097\099\107")D(function()(c(function()Y.error("\072\101\108\108\111")Y.error("\071\111\111\100 \100\097\121")Y.error("\066\121\101")end)).toErrorDev({"\072\101\108\108\111";"\071\111\111\100 \100\097\121","\066\121\101"})end,"\082\101\099\101\105\118\101\100 \119\097\114\110\105\110\103 \117\110\101\120\112\101\099\116\101\100\108\121 \100\111\101\115 \110\111\116 \105\110\099\108\117\100\101 \097 \099\111\109\112\111\110\101\110\116 \115\116\097\099\107")end)V("\102\097\105\108\115 \105\102 \119\097\114\110\105\110\103 \105\115 \101\120\112\101\099\116\101\100 \116\111 \110\111\116 \104\097\118\101 \097 \115\116\097\099\107\044 \098\117\116 \100\111\101\115",function()D(function()(c(function()Y.error("\072\101\108\108\111\n    \105\110 \100\105\118")end)).toErrorDev("\072\101\108\108\111",{withoutStack=true})end,"\082\101\099\101\105\118\101\100 \119\097\114\110\105\110\103 \117\110\101\120\112\101\099\116\101\100\108\121 \105\110\099\108\117\100\101\115 \097 \099\111\109\112\111\110\101\110\116 \115\116\097\099\107")D(function()(c(function()Y.error("\072\101\108\108\111\n    \105\110 \100\105\118")Y.error("\071\111\111\100 \100\097\121")Y.error("\066\121\101\n    \105\110 \100\105\118")end)).toErrorDev({"\072\101\108\108\111","\071\111\111\100 \100\097\121","\066\121\101"},{withoutStack=true})end,"\082\101\099\101\105\118\101\100 \119\097\114\110\105\110\103 \117\110\101\120\112\101\099\116\101\100\108\121 \105\110\099\108\117\100\101\115 \097 \099\111\109\112\111\110\101\110\116 \115\116\097\099\107")end)V("\102\097\105\108\115 \105\102 \101\120\112\101\099\116\101\100 \115\116\097\099\107-\108\101\115\115 \119\097\114\110\105\110\103 \110\117\109\098\101\114 \100\111\101\115 \110\111\116 \109\097\116\099\104 \116\104\101 \097\099\116\117\097\108 \111\110\101",function()D(function()(c(function()Y.error("\072\101\108\108\111\n    \105\110 \100\105\118")Y.error("\071\111\111\100 \100\097\121")Y.error("\066\121\101\n    \105\110 \100\105\118")end)).toErrorDev({"\072\101\108\108\111","\071\111\111\100 \100\097\121";"\066\121\101"},{withoutStack=4})end,"\069\120\112\101\099\116\101\100 \052 \119\097\114\110\105\110\103\115 \119\105\116\104\111\117\116 \097 \099\111\109\112\111\110\101\110\116 \115\116\097\099\107 \098\117\116 \114\101\099\101\105\118\101\100 \049")end)V("\102\097\105\108\115 \105\102 \119\105\116\104\111\117\116\083\116\097\099\107 \105\115 \105\110\118\097\108\105\100",function()D(function()(c(function()Y.error("\072\105")end)).toErrorDev("\072\105",{withoutStack={}})end,"\073\110\115\116\101\097\100 \114\101\099\101\105\118\101\100 \116\097\098\108\101")D(function()(c(function()Y.error("\072\105")end)).toErrorDev("\072\105",{withoutStack="\104\097\104\097"})end,"\073\110\115\116\101\097\100 \114\101\099\101\105\118\101\100 \115\116\114\105\110\103")end)V("\102\097\105\108\115 \105\102 \116\104\101 \097\114\103\117\109\101\110\116 \110\117\109\098\101\114 \100\111\101\115 \110\111\116 \109\097\116\099\104",function()D(function()(c(function()Y.error("\072\105 \037\115","\083\097\114\097","\101\120\116\114\097")end)).toErrorDev("\072\105",{withoutStack=true})end,"\082\101\099\101\105\118\101\100 \050 \097\114\103\117\109\101\110\116\115 \102\111\114 \097 \109\101\115\115\097\103\101 \119\105\116\104 \049 \112\108\097\099\101\104\111\108\100\101\114\115")D(function()(c(function()Y.error("\072\105 \037\115")end)).toErrorDev("\072\105",{withoutStack=true})end,"\082\101\099\101\105\118\101\100 \048 \097\114\103\117\109\101\110\116\115 \102\111\114 \097 \109\101\115\115\097\103\101 \119\105\116\104 \049 \112\108\097\099\101\104\111\108\100\101\114\115")end)V("\102\097\105\108\115 \105\102 \115\116\097\099\107 \105\115 \112\097\115\115\101\100 \116\119\105\099\101",function()D(function()(c(function()Y.error("\072\105 \037\115\037\115","\n    \105\110 \100\105\118","\n    \105\110 \100\105\118")end)).toErrorDev("\072\105")end,"\082\101\099\101\105\118\101\100 \109\111\114\101 \116\104\097\110 \111\110\101 \099\111\109\112\111\110\101\110\116 \115\116\097\099\107 \102\111\114 \097 \119\097\114\110\105\110\103")end)V("\102\097\105\108\115 \105\102 \109\117\108\116\105\112\108\101 \115\116\114\105\110\103\115 \097\114\101 \112\097\115\115\101\100 \119\105\116\104\111\117\116 \097\110 \097\114\114\097\121 \119\114\097\112\112\101\114",function()D(function()(c(function()Y.error("\072\105 \n    \105\110 \100\105\118")end)).toErrorDev("\072\105","\066\121\101")end,"\116\111\069\114\114\111\114\068\101\118\040\041 \115\101\099\111\110\100 \097\114\103\117\109\101\110\116\044 \119\104\101\110 \112\114\101\115\101\110\116\044 \115\104\111\117\108\100 \098\101 \097\110 \111\098\106\101\099\116")D(function()(c(function()Y.error("\072\105 \n    \105\110 \100\105\118")Y.error("\066\121\101 \n    \105\110 \100\105\118")end)).toErrorDev("\072\105","\066\121\101")end,"\116\111\069\114\114\111\114\068\101\118\040\041 \115\101\099\111\110\100 \097\114\103\117\109\101\110\116\044 \119\104\101\110 \112\114\101\115\101\110\116\044 \115\104\111\117\108\100 \098\101 \097\110 \111\098\106\101\099\116")D(function()(c(function()Y.error("\072\105 \n    \105\110 \100\105\118")Y.error("\087\111\119 \n    \105\110 \100\105\118")Y.error("\066\121\101 \n    \105\110 \100\105\118")end)).toErrorDev("\072\105","\066\121\101")end,"\116\111\069\114\114\111\114\068\101\118\040\041 \115\101\099\111\110\100 \097\114\103\117\109\101\110\116\044 \119\104\101\110 \112\114\101\115\101\110\116\044 \115\104\111\117\108\100 \098\101 \097\110 \111\098\106\101\099\116")D(function()(c(function()Y.error("\072\105 \n    \105\110 \100\105\118")Y.error("\087\111\119 \n    \105\110 \100\105\118")Y.error("\066\121\101 \n    \105\110 \100\105\118")end)).toErrorDev("\072\105","\087\111\119","\066\121\101")end,"\116\111\069\114\114\111\114\068\101\118\040\041 \115\101\099\111\110\100 \097\114\103\117\109\101\110\116\044 \119\104\101\110 \112\114\101\115\101\110\116\044 \115\104\111\117\108\100 \098\101 \097\110 \111\098\106\101\099\116")end)V("\102\097\105\108\115 \111\110 \109\111\114\101 \116\104\097\110 \116\119\111 \097\114\103\117\109\101\110\116\115",function()D(function()(c(function()Y.error("\072\105 \n    \105\110 \100\105\118")Y.error("\087\111\119 \n    \105\110 \100\105\118")Y.error("\066\121\101 \n    \105\110 \100\105\118")end)).toErrorDev("\072\105",nil,"\066\121\101")end,"\116\111\069\114\114\111\114\068\101\118\040\041 \114\101\099\101\105\118\101\100 \109\111\114\101 \116\104\097\110 \116\119\111 \097\114\103\117\109\101\110\116\115\046")end)end end)H("\116\111\087\097\114\110\068\101\118",function()V("\100\111\101\115 \110\111\116 \102\097\105\108 \105\102 \097 \119\097\114\110\105\110\103 \099\111\110\116\097\105\110\115 \097 \115\116\097\099\107",function()(c(function()if _G.__DEV__ then Y.warn("\072\101\108\108\111\n    \105\110 \100\105\118")end end)).toWarnDev("\072\101\108\108\111")end)V("\100\111\101\115 \110\111\116 \102\097\105\108 \105\102 \097\108\108 \119\097\114\110\105\110\103\115 \099\111\110\116\097\105\110 \097 \115\116\097\099\107",function()(c(function()if _G.__DEV__ then Y.warn("\072\101\108\108\111\n    \105\110 \100\105\118")Y.warn("\071\111\111\100 \100\097\121\n    \105\110 \100\105\118")Y.warn("\066\121\101\n    \105\110 \100\105\118")end end)).toWarnDev({"\072\101\108\108\111","\071\111\111\100 \100\097\121","\066\121\101"})end)V("\100\111\101\115 \110\111\116 \102\097\105\108 \105\102 \119\097\114\110\105\110\103\115 \119\105\116\104\111\117\116 \115\116\097\099\107 \101\120\112\108\105\099\105\116\108\121 \111\112\116 \111\117\116",function()(c(function()if _G.__DEV__ then Y.warn("\072\101\108\108\111")end end)).toWarnDev("\072\101\108\108\111",{withoutStack=true});(c(function()if _G.__DEV__ then Y.warn("\072\101\108\108\111")Y.warn("\071\111\111\100 \100\097\121")Y.warn("\066\121\101")end end)).toWarnDev({"\072\101\108\108\111";"\071\111\111\100 \100\097\121";"\066\121\101"},{withoutStack=true})end)V("\100\111\101\115 \110\111\116 \102\097\105\108 \119\104\101\110 \101\120\112\101\099\116\101\100 \115\116\097\099\107-\108\101\115\115 \119\097\114\110\105\110\103 \110\117\109\098\101\114 \109\097\116\099\104\101\115 \116\104\101 \097\099\116\117\097\108 \111\110\101",function()(c(function()if _G.__DEV__ then Y.warn("\072\101\108\108\111\n    \105\110 \100\105\118")Y.warn("\071\111\111\100 \100\097\121")Y.warn("\066\121\101\n    \105\110 \100\105\118")end end)).toWarnDev({"\072\101\108\108\111","\071\111\111\100 \100\097\121";"\066\121\101"},{withoutStack=1})end)if _G.__DEV__ then local function D(D,B)(c(D)).toThrow(B)end V("\102\097\105\108\115 \105\102 \097 \119\097\114\110\105\110\103 \100\111\101\115 \110\111\116 \099\111\110\116\097\105\110 \097 \115\116\097\099\107",function()D(function()(c(function()Y.warn("\072\101\108\108\111")end)).toWarnDev("\072\101\108\108\111")end,"\082\101\099\101\105\118\101\100 \119\097\114\110\105\110\103 \117\110\101\120\112\101\099\116\101\100\108\121 \100\111\101\115 \110\111\116 \105\110\099\108\117\100\101 \097 \099\111\109\112\111\110\101\110\116 \115\116\097\099\107")end)V("\102\097\105\108\115 \105\102 \115\111\109\101 \119\097\114\110\105\110\103\115 \100\111 \110\111\116 \099\111\110\116\097\105\110 \097 \115\116\097\099\107",function()D(function()(c(function()Y.warn("\072\101\108\108\111\n    \105\110 \100\105\118")Y.warn("\071\111\111\100 \100\097\121\n    \105\110 \100\105\118")Y.warn("\066\121\101")end)).toWarnDev({"\072\101\108\108\111";"\071\111\111\100 \100\097\121","\066\121\101"})end,"\082\101\099\101\105\118\101\100 \119\097\114\110\105\110\103 \117\110\101\120\112\101\099\116\101\100\108\121 \100\111\101\115 \110\111\116 \105\110\099\108\117\100\101 \097 \099\111\109\112\111\110\101\110\116 \115\116\097\099\107")D(function()(c(function()Y.warn("\072\101\108\108\111")Y.warn("\071\111\111\100 \100\097\121\n    \105\110 \100\105\118")Y.warn("\066\121\101\n    \105\110 \100\105\118")end)).toWarnDev({"\072\101\108\108\111","\071\111\111\100 \100\097\121","\066\121\101"})end,"\082\101\099\101\105\118\101\100 \119\097\114\110\105\110\103 \117\110\101\120\112\101\099\116\101\100\108\121 \100\111\101\115 \110\111\116 \105\110\099\108\117\100\101 \097 \099\111\109\112\111\110\101\110\116 \115\116\097\099\107")D(function()(c(function()Y.warn("\072\101\108\108\111\n    \105\110 \100\105\118")Y.warn("\071\111\111\100 \100\097\121")Y.warn("\066\121\101\n    \105\110 \100\105\118")end)).toWarnDev({"\072\101\108\108\111";"\071\111\111\100 \100\097\121";"\066\121\101"})end,"\082\101\099\101\105\118\101\100 \119\097\114\110\105\110\103 \117\110\101\120\112\101\099\116\101\100\108\121 \100\111\101\115 \110\111\116 \105\110\099\108\117\100\101 \097 \099\111\109\112\111\110\101\110\116 \115\116\097\099\107")D(function()(c(function()Y.warn("\072\101\108\108\111")Y.warn("\071\111\111\100 \100\097\121")Y.warn("\066\121\101")end)).toWarnDev({"\072\101\108\108\111";"\071\111\111\100 \100\097\121","\066\121\101"})end,"\082\101\099\101\105\118\101\100 \119\097\114\110\105\110\103 \117\110\101\120\112\101\099\116\101\100\108\121 \100\111\101\115 \110\111\116 \105\110\099\108\117\100\101 \097 \099\111\109\112\111\110\101\110\116 \115\116\097\099\107")end)V("\102\097\105\108\115 \105\102 \119\097\114\110\105\110\103 \105\115 \101\120\112\101\099\116\101\100 \116\111 \110\111\116 \104\097\118\101 \097 \115\116\097\099\107\044 \098\117\116 \100\111\101\115",function()D(function()(c(function()Y.warn("\072\101\108\108\111\n    \105\110 \100\105\118")end)).toWarnDev("\072\101\108\108\111",{withoutStack=true})end,"\082\101\099\101\105\118\101\100 \119\097\114\110\105\110\103 \117\110\101\120\112\101\099\116\101\100\108\121 \105\110\099\108\117\100\101\115 \097 \099\111\109\112\111\110\101\110\116 \115\116\097\099\107")D(function()(c(function()Y.warn("\072\101\108\108\111\n    \105\110 \100\105\118")Y.warn("\071\111\111\100 \100\097\121")Y.warn("\066\121\101\n    \105\110 \100\105\118")end)).toWarnDev({"\072\101\108\108\111";"\071\111\111\100 \100\097\121";"\066\121\101"},{withoutStack=true})end,"\082\101\099\101\105\118\101\100 \119\097\114\110\105\110\103 \117\110\101\120\112\101\099\116\101\100\108\121 \105\110\099\108\117\100\101\115 \097 \099\111\109\112\111\110\101\110\116 \115\116\097\099\107")end)V("\102\097\105\108\115 \105\102 \101\120\112\101\099\116\101\100 \115\116\097\099\107-\108\101\115\115 \119\097\114\110\105\110\103 \110\117\109\098\101\114 \100\111\101\115 \110\111\116 \109\097\116\099\104 \116\104\101 \097\099\116\117\097\108 \111\110\101",function()D(function()(c(function()Y.warn("\072\101\108\108\111\n    \105\110 \100\105\118")Y.warn("\071\111\111\100 \100\097\121")Y.warn("\066\121\101\n    \105\110 \100\105\118")end)).toWarnDev({"\072\101\108\108\111";"\071\111\111\100 \100\097\121","\066\121\101"},{withoutStack=4})end,"\069\120\112\101\099\116\101\100 \052 \119\097\114\110\105\110\103\115 \119\105\116\104\111\117\116 \097 \099\111\109\112\111\110\101\110\116 \115\116\097\099\107 \098\117\116 \114\101\099\101\105\118\101\100 \049")end)V("\102\097\105\108\115 \105\102 \119\105\116\104\111\117\116\083\116\097\099\107 \105\115 \105\110\118\097\108\105\100",function()D(function()(c(function()Y.warn("\072\105")end)).toWarnDev("\072\105",{withoutStack={}})end,"\073\110\115\116\101\097\100 \114\101\099\101\105\118\101\100 \116\097\098\108\101")D(function()(c(function()Y.warn("\072\105")end)).toWarnDev("\072\105",{withoutStack="\104\097\104\097"})end,"\073\110\115\116\101\097\100 \114\101\099\101\105\118\101\100 \115\116\114\105\110\103")end)V("\102\097\105\108\115 \105\102 \116\104\101 \097\114\103\117\109\101\110\116 \110\117\109\098\101\114 \100\111\101\115 \110\111\116 \109\097\116\099\104",function()D(function()(c(function()Y.warn("\072\105 \037\115","\083\097\114\097","\101\120\116\114\097")end)).toWarnDev("\072\105",{withoutStack=true})end,"\082\101\099\101\105\118\101\100 \050 \097\114\103\117\109\101\110\116\115 \102\111\114 \097 \109\101\115\115\097\103\101 \119\105\116\104 \049 \112\108\097\099\101\104\111\108\100\101\114\115")D(function()(c(function()Y.warn("\072\105 \037\115")end)).toWarnDev("\072\105",{withoutStack=true})end,"\082\101\099\101\105\118\101\100 \048 \097\114\103\117\109\101\110\116\115 \102\111\114 \097 \109\101\115\115\097\103\101 \119\105\116\104 \049 \112\108\097\099\101\104\111\108\100\101\114\115")end)V("\102\097\105\108\115 \105\102 \115\116\097\099\107 \105\115 \112\097\115\115\101\100 \116\119\105\099\101",function()D(function()(c(function()Y.warn("\072\105 \037\115\037\115","\n    \105\110 \100\105\118","\n    \105\110 \100\105\118")end)).toWarnDev("\072\105")end,"\082\101\099\101\105\118\101\100 \109\111\114\101 \116\104\097\110 \111\110\101 \099\111\109\112\111\110\101\110\116 \115\116\097\099\107 \102\111\114 \097 \119\097\114\110\105\110\103")end)V("\102\097\105\108\115 \105\102 \109\117\108\116\105\112\108\101 \115\116\114\105\110\103\115 \097\114\101 \112\097\115\115\101\100 \119\105\116\104\111\117\116 \097\110 \097\114\114\097\121 \119\114\097\112\112\101\114",function()D(function()(c(function()Y.warn("\072\105 \n    \105\110 \100\105\118")end)).toWarnDev("\072\105","\066\121\101")end,"\116\111\087\097\114\110\068\101\118\040\041 \115\101\099\111\110\100 \097\114\103\117\109\101\110\116\044 \119\104\101\110 \112\114\101\115\101\110\116\044 \115\104\111\117\108\100 \098\101 \097\110 \111\098\106\101\099\116")D(function()(c(function()Y.warn("\072\105 \n    \105\110 \100\105\118")Y.warn("\066\121\101 \n    \105\110 \100\105\118")end)).toWarnDev("\072\105","\066\121\101")end,"\116\111\087\097\114\110\068\101\118\040\041 \115\101\099\111\110\100 \097\114\103\117\109\101\110\116\044 \119\104\101\110 \112\114\101\115\101\110\116\044 \115\104\111\117\108\100 \098\101 \097\110 \111\098\106\101\099\116")D(function()(c(function()Y.warn("\072\105 \n    \105\110 \100\105\118")Y.warn("\087\111\119 \n    \105\110 \100\105\118")Y.warn("\066\121\101 \n    \105\110 \100\105\118")end)).toWarnDev("\072\105","\066\121\101")end,"\116\111\087\097\114\110\068\101\118\040\041 \115\101\099\111\110\100 \097\114\103\117\109\101\110\116\044 \119\104\101\110 \112\114\101\115\101\110\116\044 \115\104\111\117\108\100 \098\101 \097\110 \111\098\106\101\099\116")D(function()(c(function()Y.warn("\072\105 \n    \105\110 \100\105\118")Y.warn("\087\111\119 \n    \105\110 \100\105\118")Y.warn("\066\121\101 \n    \105\110 \100\105\118")end)).toWarnDev("\072\105","\087\111\119","\066\121\101")end,"\116\111\087\097\114\110\068\101\118\040\041 \115\101\099\111\110\100 \097\114\103\117\109\101\110\116\044 \119\104\101\110 \112\114\101\115\101\110\116\044 \115\104\111\117\108\100 \098\101 \097\110 \111\098\106\101\099\116")end)V("\102\097\105\108\115 \111\110 \109\111\114\101 \116\104\097\110 \116\119\111 \097\114\103\117\109\101\110\116\115",function()D(function()(c(function()Y.warn("\072\105 \n    \105\110 \100\105\118")Y.warn("\087\111\119 \n    \105\110 \100\105\118")Y.warn("\066\121\101 \n    \105\110 \100\105\118")end)).toWarnDev("\072\105",nil,"\066\121\101")end,"\116\111\087\097\114\110\068\101\118\040\041 \114\101\099\101\105\118\101\100 \109\111\114\101 \116\104\097\110 \116\119\111 \097\114\103\117\109\101\110\116\115\046")end)end end)H("\116\111\076\111\103\068\101\118",function()V("\100\111\101\115 \110\111\116 \102\097\105\108 \105\102 \097 \108\111\103\115 \099\111\110\116\097\105\110\115 \097 \115\116\097\099\107",function()(c(function()Y.log("\072\101\108\108\111\n    \105\110 \100\105\118")end)).toLogDev("\072\101\108\108\111")end)V("\100\111\101\115 \110\111\116 \102\097\105\108 \105\102 \097\108\108 \108\111\103\115 \099\111\110\116\097\105\110 \097 \115\116\097\099\107",function()(c(function()Y.log("\072\101\108\108\111\n    \105\110 \100\105\118")Y.log("\071\111\111\100 \100\097\121\n    \105\110 \100\105\118")Y.log("\066\121\101\n    \105\110 \100\105\118")end)).toLogDev({"\072\101\108\108\111","\071\111\111\100 \100\097\121","\066\121\101"})end)end)
-- ROBLOX upstream https://github.com/facebook/react/blob/0b5a26a4895261894f04e50d5a700e83b9c0dcf6/scripts/jest/matchers/__tests__/toWarnDev-test.js
--[[*
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * @emails react-core
 ]]
local Packages = script.Parent.Parent.Parent.Parent.TestRunner
local JestGlobals = require(Packages.Dev.JestGlobals)
local jestExpect = JestGlobals.expect
local beforeEach = JestGlobals.beforeEach
local beforeAll = JestGlobals.beforeAll
local describe = JestGlobals.describe
local it = JestGlobals.it
local toErrorDev = require(script.Parent.Parent.Parent.matchers.toErrorDev)
local toWarnDev = require(script.Parent.Parent.Parent.matchers.toWarnDev)

local console

beforeAll(function()
	jestExpect.extend({
		toErrorDev = toErrorDev,
		toWarnDev = toWarnDev,
	})
end)

beforeEach(function()
	local LuauPolyfill = require(Packages.Dev.LuauPolyfill)
	console = LuauPolyfill.console
end)

describe("toErrorDev", function()
	it("does not fail if a warning contains a stack", function()
		jestExpect(function()
			if _G.__DEV__ then
				console.error("Hello\n    in div")
			end
		end).toErrorDev("Hello")
	end)

	it("does not fail if all warnings contain a stack", function()
		jestExpect(function()
			if _G.__DEV__ then
				console.error("Hello\n    in div")
				console.error("Good day\n    in div")
				console.error("Bye\n    in div")
			end
		end).toErrorDev({
			"Hello",
			"Good day",
			"Bye",
		})
	end)

	it("does not fail if warnings without stack explicitly opt out", function()
		jestExpect(function()
			if _G.__DEV__ then
				console.error("Hello")
			end
		end).toErrorDev("Hello", { withoutStack = true })
		jestExpect(function()
			if _G.__DEV__ then
				console.error("Hello")
				console.error("Good day")
				console.error("Bye")
			end
		end).toErrorDev({
			"Hello",
			"Good day",
			"Bye",
		}, {
			withoutStack = true,
		})
	end)

	it(
		"does not fail when expected stack-less warning number matches the actual one",
		function()
			jestExpect(function()
				if _G.__DEV__ then
					console.error("Hello\n    in div")
					console.error("Good day")
					console.error("Bye\n    in div")
				end
			end).toErrorDev({
				"Hello",
				"Good day",
				"Bye",
			}, {
				withoutStack = 1,
			})
		end
	)

	if _G.__DEV__ then
		-- // Helper methods avoids invalid toWarn().toThrow() nesting
		-- // See no-to-warn-dev-within-to-throw
		local function expectToWarnAndToThrow(expectBlock, expectedErrorMessage)
			-- deviation: use TestEZ to thow to get a better error message
			jestExpect(expectBlock).toThrow(expectedErrorMessage)
		end

		it("fails if a warning does not contain a stack", function()
			expectToWarnAndToThrow(function()
				jestExpect(function()
					console.error("Hello")
				end).toErrorDev("Hello")
			end, "Received warning unexpectedly does not include a component stack")
		end)

		it("fails if some warnings do not contain a stack", function()
			expectToWarnAndToThrow(function()
				jestExpect(function()
					console.error("Hello\n    in div")
					console.error("Good day\n    in div")
					console.error("Bye")
				end).toErrorDev({
					"Hello",
					"Good day",
					"Bye",
				})
			end, "Received warning unexpectedly does not include a component stack")
			expectToWarnAndToThrow(function()
				jestExpect(function()
					console.error("Hello")
					console.error("Good day\n    in div")
					console.error("Bye\n    in div")
				end).toErrorDev({
					"Hello",
					"Good day",
					"Bye",
				})
			end, "Received warning unexpectedly does not include a component stack")
			expectToWarnAndToThrow(function()
				jestExpect(function()
					console.error("Hello\n    in div")
					console.error("Good day")
					console.error("Bye\n    in div")
				end).toErrorDev({
					"Hello",
					"Good day",
					"Bye",
				})
			end, "Received warning unexpectedly does not include a component stack")
			expectToWarnAndToThrow(function()
				jestExpect(function()
					console.error("Hello")
					console.error("Good day")
					console.error("Bye")
				end).toErrorDev({
					"Hello",
					"Good day",
					"Bye",
				})
			end, "Received warning unexpectedly does not include a component stack")
		end)

		it("fails if warning is expected to not have a stack, but does", function()
			expectToWarnAndToThrow(function()
				jestExpect(function()
					console.error("Hello\n    in div")
				end).toErrorDev("Hello", { withoutStack = true })
			end, "Received warning unexpectedly includes a component stack")
			expectToWarnAndToThrow(function()
				jestExpect(function()
					console.error("Hello\n    in div")
					console.error("Good day")
					console.error("Bye\n    in div")
				end).toErrorDev({
					"Hello",
					"Good day",
					"Bye",
				}, {
					withoutStack = true,
				})
			end, "Received warning unexpectedly includes a component stack")
		end)

		it(
			"fails if expected stack-less warning number does not match the actual one",
			function()
				expectToWarnAndToThrow(function()
					jestExpect(function()
						console.error("Hello\n    in div")
						console.error("Good day")
						console.error("Bye\n    in div")
					end).toErrorDev({
						"Hello",
						"Good day",
						"Bye",
					}, {
						withoutStack = 4,
					})
				end, "Expected 4 warnings without a component stack but received 1")
			end
		)

		it("fails if withoutStack is invalid", function()
			-- deviation: null should error, but not undefined. Since they're the same
			-- in Lua, we can comment the expectation
			-- expectToWarnAndToThrow(function()
			-- 	jestExpect(function()
			-- 		console.error("Hi")
			-- 	end).toErrorDev("Hi", {withoutStack = null})
			-- end, "Instead received object")
			expectToWarnAndToThrow(function()
				jestExpect(function()
					console.error("Hi")
				end).toErrorDev("Hi", { withoutStack = {} })
			end, "Instead received table")
			expectToWarnAndToThrow(function()
				jestExpect(function()
					console.error("Hi")
				end).toErrorDev("Hi", {
					withoutStack = "haha",
				})
			end, "Instead received string")
		end)

		it("fails if the argument number does not match", function()
			expectToWarnAndToThrow(function()
				jestExpect(function()
					console.error("Hi %s", "Sara", "extra")
				end).toErrorDev("Hi", { withoutStack = true })
			end, "Received 2 arguments for a message with 1 placeholders")
			expectToWarnAndToThrow(function()
				jestExpect(function()
					console.error("Hi %s")
				end).toErrorDev("Hi", { withoutStack = true })
			end, "Received 0 arguments for a message with 1 placeholders")
		end)

		it("fails if stack is passed twice", function()
			expectToWarnAndToThrow(function()
				jestExpect(function()
					console.error("Hi %s%s", "\n    in div", "\n    in div")
				end).toErrorDev("Hi")
			end, "Received more than one component stack for a warning")
		end)

		it("fails if multiple strings are passed without an array wrapper", function()
			expectToWarnAndToThrow(function()
				jestExpect(function()
					console.error("Hi \n    in div")
				end).toErrorDev("Hi", "Bye")
			end, "toErrorDev() second argument, when present, should be an object")
			expectToWarnAndToThrow(function()
				jestExpect(function()
					console.error("Hi \n    in div")
					console.error("Bye \n    in div")
				end).toErrorDev("Hi", "Bye")
			end, "toErrorDev() second argument, when present, should be an object")
			expectToWarnAndToThrow(function()
				jestExpect(function()
					console.error("Hi \n    in div")
					console.error("Wow \n    in div")
					console.error("Bye \n    in div")
				end).toErrorDev("Hi", "Bye")
			end, "toErrorDev() second argument, when present, should be an object")
			expectToWarnAndToThrow(function()
				jestExpect(function()
					console.error("Hi \n    in div")
					console.error("Wow \n    in div")
					console.error("Bye \n    in div")
				end).toErrorDev("Hi", "Wow", "Bye")
			end, "toErrorDev() second argument, when present, should be an object")
		end)

		it("fails on more than two arguments", function()
			expectToWarnAndToThrow(function()
				jestExpect(function()
					console.error("Hi \n    in div")
					console.error("Wow \n    in div")
					console.error("Bye \n    in div")
				end).toErrorDev("Hi", nil, "Bye")
			end, "toErrorDev() received more than two arguments.")
		end)
	end
end)

describe("toWarnDev", function()
	it("does not fail if a warning contains a stack", function()
		jestExpect(function()
			if _G.__DEV__ then
				console.warn("Hello\n    in div")
			end
		end).toWarnDev("Hello")
	end)

	it("does not fail if all warnings contain a stack", function()
		jestExpect(function()
			if _G.__DEV__ then
				console.warn("Hello\n    in div")
				console.warn("Good day\n    in div")
				console.warn("Bye\n    in div")
			end
		end).toWarnDev({
			"Hello",
			"Good day",
			"Bye",
		})
	end)

	it("does not fail if warnings without stack explicitly opt out", function()
		jestExpect(function()
			if _G.__DEV__ then
				console.warn("Hello")
			end
		end).toWarnDev("Hello", { withoutStack = true })
		jestExpect(function()
			if _G.__DEV__ then
				console.warn("Hello")
				console.warn("Good day")
				console.warn("Bye")
			end
		end).toWarnDev({
			"Hello",
			"Good day",
			"Bye",
		}, {
			withoutStack = true,
		})
	end)

	it(
		"does not fail when expected stack-less warning number matches the actual one",
		function()
			jestExpect(function()
				if _G.__DEV__ then
					console.warn("Hello\n    in div")
					console.warn("Good day")
					console.warn("Bye\n    in div")
				end
			end).toWarnDev({
				"Hello",
				"Good day",
				"Bye",
			}, {
				withoutStack = 1,
			})
		end
	)

	if _G.__DEV__ then
		-- // Helper methods avoids invalid toWarn().toThrow() nesting
		-- // See no-to-warn-dev-within-to-throw
		local function expectToWarnAndToThrow(expectBlock, expectedErrorMessage)
			-- deviation: use TestEZ to thow to get a better error message
			jestExpect(expectBlock).toThrow(expectedErrorMessage)
		end

		it("fails if a warning does not contain a stack", function()
			expectToWarnAndToThrow(function()
				jestExpect(function()
					console.warn("Hello")
				end).toWarnDev("Hello")
			end, "Received warning unexpectedly does not include a component stack")
		end)

		it("fails if some warnings do not contain a stack", function()
			expectToWarnAndToThrow(function()
				jestExpect(function()
					console.warn("Hello\n    in div")
					console.warn("Good day\n    in div")
					console.warn("Bye")
				end).toWarnDev({
					"Hello",
					"Good day",
					"Bye",
				})
			end, "Received warning unexpectedly does not include a component stack")
			expectToWarnAndToThrow(function()
				jestExpect(function()
					console.warn("Hello")
					console.warn("Good day\n    in div")
					console.warn("Bye\n    in div")
				end).toWarnDev({
					"Hello",
					"Good day",
					"Bye",
				})
			end, "Received warning unexpectedly does not include a component stack")
			expectToWarnAndToThrow(function()
				jestExpect(function()
					console.warn("Hello\n    in div")
					console.warn("Good day")
					console.warn("Bye\n    in div")
				end).toWarnDev({
					"Hello",
					"Good day",
					"Bye",
				})
			end, "Received warning unexpectedly does not include a component stack")
			expectToWarnAndToThrow(function()
				jestExpect(function()
					console.warn("Hello")
					console.warn("Good day")
					console.warn("Bye")
				end).toWarnDev({
					"Hello",
					"Good day",
					"Bye",
				})
			end, "Received warning unexpectedly does not include a component stack")
		end)

		it("fails if warning is expected to not have a stack, but does", function()
			expectToWarnAndToThrow(function()
				jestExpect(function()
					console.warn("Hello\n    in div")
				end).toWarnDev("Hello", { withoutStack = true })
			end, "Received warning unexpectedly includes a component stack")
			expectToWarnAndToThrow(function()
				jestExpect(function()
					console.warn("Hello\n    in div")
					console.warn("Good day")
					console.warn("Bye\n    in div")
				end).toWarnDev({
					"Hello",
					"Good day",
					"Bye",
				}, {
					withoutStack = true,
				})
			end, "Received warning unexpectedly includes a component stack")
		end)

		it(
			"fails if expected stack-less warning number does not match the actual one",
			function()
				expectToWarnAndToThrow(function()
					jestExpect(function()
						console.warn("Hello\n    in div")
						console.warn("Good day")
						console.warn("Bye\n    in div")
					end).toWarnDev({
						"Hello",
						"Good day",
						"Bye",
					}, {
						withoutStack = 4,
					})
				end, "Expected 4 warnings without a component stack but received 1")
			end
		)

		it("fails if withoutStack is invalid", function()
			-- deviation: null should error, but not undefined. Since they're the same
			-- in Lua, we can comment the expectation
			-- expectToWarnAndToThrow(function()
			-- 	jestExpect(function()
			-- 		console.warn("Hi")
			-- 	end).toWarnDev("Hi", {withoutStack = nil})
			-- end, "Instead received object")
			expectToWarnAndToThrow(function()
				jestExpect(function()
					console.warn("Hi")
				end).toWarnDev("Hi", { withoutStack = {} })
			end, "Instead received table")
			expectToWarnAndToThrow(function()
				jestExpect(function()
					console.warn("Hi")
				end).toWarnDev("Hi", {
					withoutStack = "haha",
				})
			end, "Instead received string")
		end)

		it("fails if the argument number does not match", function()
			expectToWarnAndToThrow(function()
				jestExpect(function()
					console.warn("Hi %s", "Sara", "extra")
				end).toWarnDev("Hi", { withoutStack = true })
			end, "Received 2 arguments for a message with 1 placeholders")
			expectToWarnAndToThrow(function()
				jestExpect(function()
					console.warn("Hi %s")
				end).toWarnDev("Hi", { withoutStack = true })
			end, "Received 0 arguments for a message with 1 placeholders")
		end)

		it("fails if stack is passed twice", function()
			expectToWarnAndToThrow(function()
				jestExpect(function()
					console.warn("Hi %s%s", "\n    in div", "\n    in div")
				end).toWarnDev("Hi")
			end, "Received more than one component stack for a warning")
		end)

		it("fails if multiple strings are passed without an array wrapper", function()
			expectToWarnAndToThrow(function()
				jestExpect(function()
					console.warn("Hi \n    in div")
				end).toWarnDev("Hi", "Bye")
			end, "toWarnDev() second argument, when present, should be an object")
			expectToWarnAndToThrow(function()
				jestExpect(function()
					console.warn("Hi \n    in div")
					console.warn("Bye \n    in div")
				end).toWarnDev("Hi", "Bye")
			end, "toWarnDev() second argument, when present, should be an object")
			expectToWarnAndToThrow(function()
				jestExpect(function()
					console.warn("Hi \n    in div")
					console.warn("Wow \n    in div")
					console.warn("Bye \n    in div")
				end).toWarnDev("Hi", "Bye")
			end, "toWarnDev() second argument, when present, should be an object")
			expectToWarnAndToThrow(function()
				jestExpect(function()
					console.warn("Hi \n    in div")
					console.warn("Wow \n    in div")
					console.warn("Bye \n    in div")
				end).toWarnDev("Hi", "Wow", "Bye")
			end, "toWarnDev() second argument, when present, should be an object")
		end)

		it("fails on more than two arguments", function()
			expectToWarnAndToThrow(function()
				jestExpect(function()
					console.warn("Hi \n    in div")
					console.warn("Wow \n    in div")
					console.warn("Bye \n    in div")
				end).toWarnDev("Hi", nil, "Bye")
			end, "toWarnDev() received more than two arguments.")
		end)
	end
end)

describe("toLogDev", function()
	it("does not fail if a logs contains a stack", function()
		jestExpect(function()
			console.log("Hello\n    in div")
		end).toLogDev("Hello")
	end)

	it("does not fail if all logs contain a stack", function()
		jestExpect(function()
			console.log("Hello\n    in div")
			console.log("Good day\n    in div")
			console.log("Bye\n    in div")
		end).toLogDev({
			"Hello",
			"Good day",
			"Bye",
		})
	end)
end)
