Jest Lua currently depends on an internal Roblox API that requires flipping the FFlagEnableLoadModule flag. This makes adoption more difficult for many developers.
It's not clear how we can actually do this, though. loadmodule is used to:
Support mocking a module environment (you cannot mock an entire module when using require)
Not requiring a top-level function to be returned, like with TestEZ
Jest Lua currently depends on an internal Roblox API that requires flipping the
FFlagEnableLoadModule
flag. This makes adoption more difficult for many developers.It's not clear how we can actually do this, though.
loadmodule
is used to:require
)