local H=script.Parent.Parent.Parent local T=require(H.JestGlobals)local R=T.expect local a=T.test local U=(require(H.DomTestingLibrary)).document local h=require(H.React)local t=(require(script.Parent.Parent)).render a("\102\105\114\115\116",function()t(h.createElement("\084\101\120\116\076\097\098\101\108",{Text="\104\105"}))end)a("\115\101\099\111\110\100",function()(R(U)).toBeEmptyDOMElement()end)return{}
-- ROBLOX upstream: https://github.com/testing-library/react-testing-library/blob/v12.1.5/src/__tests__/auto-cleanup.js
local Packages = script.Parent.Parent.Parent

local JestGlobals = require(Packages.JestGlobals)
local expect = JestGlobals.expect
local test = JestGlobals.test

local document = require(Packages.DomTestingLibrary).document

local React = require(Packages.React)
local render = require(script.Parent.Parent).render

-- This just verifies that by importing RTL in an
-- environment which supports afterEach (like jest)
-- we'll get automatic cleanup between tests.
test("first", function()
	render(React.createElement("TextLabel", { Text = "hi" }))
end)

test("second", function()
	expect(document).toBeEmptyDOMElement()
end)

return {}
