mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-11 01:42:32 +00:00
fix(minit): add tests to package.path when running busted (helpers.lua etc)
This commit is contained in:
parent
1870238cf9
commit
fadebdc76b
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue