This commit is contained in:
@@ -595,7 +595,7 @@ function runner.build_failed_command(last_command, failures, _scope_kind)
|
||||
if last_command and last_command.cmd then
|
||||
return { cmd = last_command.cmd, cwd = last_command.cwd }
|
||||
end
|
||||
local cwd = vim.loop.cwd()
|
||||
local cwd = vim.uv.cwd()
|
||||
return { cmd = base_cmd(cwd), cwd = cwd }
|
||||
end
|
||||
|
||||
@@ -620,7 +620,7 @@ function runner.build_failed_command(last_command, failures, _scope_kind)
|
||||
end
|
||||
end
|
||||
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
|
||||
table.insert(cmd, "--testNamePattern")
|
||||
table.insert(cmd, pattern)
|
||||
|
||||
@@ -9,7 +9,7 @@ end
|
||||
local function with_project(package_json, fn)
|
||||
local root = vim.fn.tempname()
|
||||
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
|
||||
write_file(root .. "/package.json", package_json)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user