Builtin Library
README.md
package_caller_test
Test fixture used by the package-caller / relative-require tests.
Loads a sibling module via the ~. relative-require prefix so a
test can assert that the resolution works from module load.
Exports
M.sibling: any— the module returned byrequire('~.transform').
Usage
local fixture = require("@builtin::modules.package_caller_test")
assert(fixture.sibling ~= nil)
Notes
- This module exists only to exercise the
~.relative-require path. It carries no behaviour of its own. - The require runs at module load — the test asserts resolution success by the fact that the module body did not throw.