This commit is contained in:
JackMacWindows 2023-12-30 20:44:06 -05:00 committed by GitHub
parent 9c28129b11
commit 169581a048
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -82,9 +82,11 @@ describe("cc.require", function()
it("uses shell.package_path for package loading", function()
setup("test-files/some_module.lua", "return 123")
local old_path = settings.get("shell.package_path")
settings.set("shell.package_path", "/test_files/?.lua")
local require, package = mk()
expect(require("some_module")):eq(123)
settings.set("shell.package_path", old_path)
end)
end)
end)