From 1429445746f28a4ce887289ea6e442430629e306 Mon Sep 17 00:00:00 2001 From: Unain Date: Thu, 7 Aug 2025 15:39:56 +0200 Subject: [PATCH] Fixed docker error on running full testsuite (#20) --- lua/neotest-pest/init.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lua/neotest-pest/init.lua b/lua/neotest-pest/init.lua index 488aed6..caf72f2 100644 --- a/lua/neotest-pest/init.lua +++ b/lua/neotest-pest/init.lua @@ -113,6 +113,10 @@ function NeotestAdapter.build_spec(args) if config('sail_enabled') then debug("Sail enabled, adjusting path") path = config('sail_project_path') .. string.sub(position.path, string.len(vim.loop.cwd() or "") + 1) + + if position.type == "dir" then + path = "" + end end local command = vim.tbl_flatten({