fix(minit): add tests to package.path when running busted (helpers.lua etc)

This commit is contained in:
Folke Lemaitre 2024-07-09 15:02:18 +02:00
parent 1870238cf9
commit fadebdc76b
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 1 additions and 0 deletions

View File

@ -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,