This commit is contained in:
@@ -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)
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user