mirror of https://github.com/folke/lazy.nvim.git
fix(minit): add tests to package.path when running busted (helpers.lua etc)
This commit is contained in:
parent
1870238cf9
commit
fadebdc76b
|
@ -99,6 +99,7 @@ function M.busted.run()
|
||||||
if not require("lazy.core.config").headless() then
|
if not require("lazy.core.config").headless() then
|
||||||
return vim.notify("busted can only run in headless mode. Please run with `nvim -l`", vim.log.levels.WARN)
|
return vim.notify("busted can only run in headless mode. Please run with `nvim -l`", vim.log.levels.WARN)
|
||||||
end
|
end
|
||||||
|
package.path = package.path .. ";" .. vim.uv.cwd() .. "/tests/?.lua"
|
||||||
-- run busted
|
-- run busted
|
||||||
return pcall(require("busted.runner"), {
|
return pcall(require("busted.runner"), {
|
||||||
standalone = false,
|
standalone = false,
|
||||||
|
|
Loading…
Reference in New Issue