Skip to content

Commit b28d221

Browse files
author
RoFlection Bot
committed
#nojira Set a size for the container (#54)
* Set a size for the container * Use a Folder to avoid overhead of Frame sizing * Fix debug test * Bump to 12.2.0
1 parent dffb381 commit b28d221

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

rotriever.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ReactTestingLibrary"
3-
version = "12.1.5"
3+
version = "12.2.0"
44
authors = [
55
"Ignacio Falk <[email protected]>",
66
"Allan Jeremy <[email protected]>",
@@ -20,4 +20,3 @@ JestGlobals = "github.com/roblox/[email protected]"
2020
[dev_dependencies]
2121
Jest = "github.com/roblox/[email protected]"
2222
LuauRegExp = "github.com/Roblox/[email protected]"
23-

src/__tests__/debug.spec.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ test("allows same arguments as prettyDOM", function()
7070
debug_(container, 6, { highlight = false })
7171

7272
expect(console.log).toHaveBeenCalledTimes(1)
73-
expect((console.log :: any).mock.calls[1]).toEqual({ "Frame ..." })
73+
expect((console.log :: any).mock.calls[1]).toEqual({ "Folder..." })
7474
end)
7575
--[[
7676
eslint

src/pure.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ local function render(ui, ref_: Object?)
7373
end
7474
if not container then
7575
-- ROBLOX deviation START: replace ReactDom
76-
container = Instance.new("Frame")
76+
container = Instance.new("Folder")
7777
container.Parent = baseElement
7878
renderer = ReactRoblox.createLegacyRoot(container)
7979
-- baseElement:render(container)

0 commit comments

Comments
 (0)