ci: allow to run busted script with nvim -u to inspect env

This commit is contained in:
Folke Lemaitre 2024-06-29 07:26:39 +02:00
parent cfdfb786b1
commit f47ab692f1
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 3 additions and 0 deletions

View File

@ -48,6 +48,9 @@ function M.busted(opts)
-- disable termnial output for the tests
Config.options.headless = {}
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)
end
-- run busted
return pcall(require("busted.runner"), {
standalone = false,