Skip to content

Commit f47ab69

Browse files
committed
ci: allow to run busted script with nvim -u to inspect env
1 parent cfdfb78 commit f47ab69

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lua/lazy/minit.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ function M.busted(opts)
4848
-- disable termnial output for the tests
4949
Config.options.headless = {}
5050

51+
if not require("lazy.core.config").headless() then
52+
return vim.notify("busted can only run in headless mode. Please run with `nvim -l`", vim.log.levels.WARN)
53+
end
5154
-- run busted
5255
return pcall(require("busted.runner"), {
5356
standalone = false,

0 commit comments

Comments
 (0)