fix bugs after upgrading to neovim 0.12
tests / test (push) Failing after 6s

This commit is contained in:
2026-05-12 08:35:05 +02:00
parent 3f31707f01
commit 770e49d98a
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -543,7 +543,7 @@ function runner.build_failed_command(last_command, failures, _scope_kind)
if last_command and last_command.cmd then if last_command and last_command.cmd then
return { cmd = last_command.cmd, cwd = last_command.cwd } return { cmd = last_command.cmd, cwd = last_command.cwd }
end end
local cwd = vim.loop.cwd() local cwd = vim.uv.cwd()
return { cmd = base_cmd(cwd), cwd = cwd } return { cmd = base_cmd(cwd), cwd = cwd }
end end
@@ -568,7 +568,7 @@ function runner.build_failed_command(last_command, failures, _scope_kind)
end end
end end
if #cmd == 0 then if #cmd == 0 then
cmd = base_cmd(last_command and last_command.cwd or vim.loop.cwd()) cmd = base_cmd(last_command and last_command.cwd or vim.uv.cwd())
end end
table.insert(cmd, "--testNamePattern") table.insert(cmd, "--testNamePattern")
table.insert(cmd, pattern) table.insert(cmd, pattern)
+1 -1
View File
@@ -9,7 +9,7 @@ end
local function with_project(package_json, fn) local function with_project(package_json, fn)
local root = vim.fn.tempname() local root = vim.fn.tempname()
vim.fn.mkdir(root, "p") vim.fn.mkdir(root, "p")
root = vim.loop.fs_realpath(root) or root root = vim.uv.fs_realpath(root) or root
if package_json then if package_json then
write_file(root .. "/package.json", package_json) write_file(root .. "/package.json", package_json)
end end