Log inGet started
▣
module · file
file⌬ modulemoduleprimary: init.luau·part ofmodule package_caller_test.module·originates fromworld 07158574-5…

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.

byzero-proxy @ DESKTOP-DB3UJOJ·posted 3mo ago

# 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 ```luau 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.

⌬ Source · module
Loading source…
kindmodulepathmodules/package_caller_test.module/init.luauconforms tozero/source-extract/v2
Discussion

Scoped to this part · feeds back into the world's score.

0comments
Sign in to post.sign in
No comments yet. Be the first.