1
0
Fork 0
mirror of https://github.com/pnx/neotest-phpunit synced 2026-06-18 04:10:01 +02:00

initial stab at a dynamic config

This commit is contained in:
V13Axel 2024-02-16 16:34:16 -05:00
parent 5071eff864
commit 31e410341b
2 changed files with 51 additions and 14 deletions

View file

@ -0,0 +1,33 @@
local M = {}
M.enable_sail = function()
return vim.fn.filereadable("vendor/bin/sail") == 1
end
M.get_pest_cmd = function()
local binary = "pest"
if vim.fn.filereadable("vendor/bin/pest") == 1 then
binary = "vendor/bin/pest"
end
return binary
end
M.get_env = function()
return {}
end
M.get_root_ignore_files = function()
return {}
end
M.get_root_files = function()
return { "tests/Pest.php" }
end
M.get_filter_dirs = function()
return { ".git", "node_modules", "vendor" }
end
return M