Testing

Jest-Lua

The Luau port of Jest (jsdotlua/jest-lua on Wally; Roblox/jest-roblox upstream): describe, it, expect, mocks, snapshots and fake timers.

Why studios use it

Unit tests for game rules that run in Studio (Edit mode) or headlessly through Open Cloud Luau Execution.

Cost
Free
Licence
MIT
Runs on
Roblox Studio, Open Cloud Luau Execution
Check the install
wally.toml lists jsdotlua/jest and jsdotlua/jest-globals under [dev-dependencies], and running unit/run.server.luau from the Studio command bar in Edit mode prints UNIT SUITE DONE.
Official site
github.com

Alternatives to Jest-Lua

OptionWhat it isWhen pros pick itTrade-offs
TestEZRoblox's older BDD test library.Legacy codebases only.Archived on GitHub; no further development.
Hand-rolled harnessA module that prints TEST PASS or TEST FAIL, like Beacon Yard's challenges.Small projects and learning.No mocks, reports or tooling.
LuneA standalone Luau runtime.Pure Luau tools and scripts outside the engine.No Roblox engine, so Jest-Lua does not run on it.