Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commit61a33237e0

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 by require('~.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.