local d=require("\064\112\107\103\047\064\106\115\100\111\116\108\117\097\047\106\101\115\116-\103\108\111\098\097\108\115")local i=d.expect local F=d.jest local k=d.beforeEach local b=d.it local a local M k(function()F.resetModules()a=require("\046\046\047\082\101\097\099\116\070\105\098\101\114\082\111\111\116\046\110\101\119\046\108\117\097\117")M=require("\046\046\047\082\101\097\099\116\082\111\111\116\084\097\103\115")end)b("\115\104\111\117\108\100 \112\114\111\112\101\114\108\121 \105\110\105\116\105\097\108\105\122\101 \097 \102\105\098\101\114 \099\114\101\097\116\101\100 \119\105\116\104 \099\114\101\097\116\101\070\105\098\101\114\082\111\111\116",function()local d=a.createFiberRoot({},M.BlockingRoot,false);(i(d.current)).toBeDefined();(i(d.current.updateQueue)).toBeDefined()end)
-- awaiting pull request: https://github.com/facebook/react/pull/20155
--[[*
 * 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
 * @jest-environment node
]]

local JestGlobals = require("@pkg/@jsdotlua/jest-globals")
local jestExpect = JestGlobals.expect
local jest = JestGlobals.jest
local beforeEach = JestGlobals.beforeEach
local it = JestGlobals.it

local ReactFiberRoot
local ReactRootTags

beforeEach(function()
	jest.resetModules()

	ReactFiberRoot = require("../ReactFiberRoot.new.luau")
	ReactRootTags = require("../ReactRootTags")
end)

it("should properly initialize a fiber created with createFiberRoot", function()
	local fiberRoot =
		ReactFiberRoot.createFiberRoot({}, ReactRootTags.BlockingRoot, false)

	jestExpect(fiberRoot.current).toBeDefined()
	jestExpect(fiberRoot.current.updateQueue).toBeDefined()
end)
