Lovely Lua Testing
Jest Roblox can run within Roblox itself, as well as inside roblox-cli for testing on CI systems.
We use Jest Roblox at Roblox for testing our apps, in-game core scripts, built-in Roblox Studio plugins, as well as libraries like Roact Navigation.
Add this package to your dev_dependencies
in your rotriever.toml
, for example:
JestGlobals = "3.9.1"
Then, require anything you need from JestGlobals
:
local JestGlobals = require(Packages.JestGlobals)
local expect = JestGlobals.expect
Jest Roblox is a Roblox port of the open source JavaScript testing framework Jest. Modules in the modules
directory are aligned to v27.4.7 of Jest.
Contributions are welcome! See CONTRIBUTING.md for information.
Jest Roblox is available under the MIT license. See LICENSE for details.