1
0
Fork 0
mirror of https://github.com/pnx/neotest-phpunit synced 2026-06-16 03:54:55 +02:00

Properly, actually detect it and it works

This commit is contained in:
V13Axel 2024-02-07 11:10:00 -05:00
parent 0e33cea65d
commit 4a6586ec6f

View file

@ -55,7 +55,7 @@ end
local function get_pest_cmd()
local binary = "pest"
if vim.fn.filereadable("vendor/bin/pest") then
if vim.fn.filereadable("vendor/bin/pest") == 1 then
binary = "vendor/bin/pest"
end
@ -76,7 +76,7 @@ function NeotestAdapter.build_spec(args)
local command = {}
if vim.fn.filereadable("vendor/bin/sail") then
if vim.fn.filereadable("vendor/bin/sail") == 1 then
command = vim.tbl_flatten({
"vendor/bin/sail", "bin", "pest",
position.name ~= "tests" and ("/var/www/html" .. string.sub(position.path, string.len(vim.loop.cwd()) + 1)),