From 59334064f8604ca073791c25dcc5c9698865406e Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Thu, 2 Oct 2025 23:08:03 +0200 Subject: [PATCH] test(minit): added support for passing tests to run to mini.test --- lua/lazy/minit.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lazy/minit.lua b/lua/lazy/minit.lua index 2eb2270..b511a92 100644 --- a/lua/lazy/minit.lua +++ b/lua/lazy/minit.lua @@ -152,7 +152,7 @@ function M.minitest.setup(opts) opts = { collect = { find_files = function() - return vim.fn.globpath("tests", "**/*_spec.lua", true, true) + return #_G.arg > 0 and _G.arg or vim.fn.globpath("tests", "**/*_spec.lua", true, true) end, }, -- script_path = "tests/minit.lua",