Skip to content

Commit

Permalink
test(release): adds lifecycles to test
Browse files Browse the repository at this point in the history
  • Loading branch information
jmesrje committed Jan 22, 2025
1 parent 4a64d9e commit cc07b7c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/client/Modules/Announcement.luau
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ local Announcement = {
UI = {}
}

function Announcement.Heartbeat(delta)
print(delta)
end

function Announcement.Init()
Announcement.UI.Gui = Player.PlayerGui:WaitForChild("Announce")
Announcement.UI.Label = Announcement.UI.Gui:WaitForChild("AnnounceLabel")
Expand Down
5 changes: 5 additions & 0 deletions tests/client/init.client.luau
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
local Lumin = require(game.ReplicatedStorage.framework.src)
local Modules = script.Modules

local Lifecycle = Lumin.Lifecycle("Heartbeat")
game:GetService("RunService").Heartbeat:Connect(function(delta)
Lifecycle:Fire(delta)
end)

Lumin.Add({Modules})
Lumin.Start()

0 comments on commit cc07b7c

Please sign in to comment.