Skip to content

Commit fadebdc

Browse files
committed
fix(minit): add tests to package.path when running busted (helpers.lua etc)
1 parent 1870238 commit fadebdc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lua/lazy/minit.lua

+1
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ function M.busted.run()
9999
if not require("lazy.core.config").headless() then
100100
return vim.notify("busted can only run in headless mode. Please run with `nvim -l`", vim.log.levels.WARN)
101101
end
102+
package.path = package.path .. ";" .. vim.uv.cwd() .. "/tests/?.lua"
102103
-- run busted
103104
return pcall(require("busted.runner"), {
104105
standalone = false,

0 commit comments

Comments
 (0)