remove built-in runner
This commit is contained in:
@@ -436,13 +436,6 @@ function M.get_runner_for_buf(bufnr)
|
||||
return nil
|
||||
end
|
||||
|
||||
if path:find(".test.", 1, true) or path:find(".spec.", 1, true) then
|
||||
local ok, jsjest = pcall(require, "test-samurai.runners.js-jest")
|
||||
if ok and type(jsjest) == "table" then
|
||||
return jsjest
|
||||
end
|
||||
end
|
||||
|
||||
return nil
|
||||
end
|
||||
|
||||
@@ -1915,7 +1908,7 @@ function M.run_nearest()
|
||||
|
||||
local runner = M.get_runner_for_buf(bufnr)
|
||||
if not runner then
|
||||
vim.notify("[test-samurai] No runner for this file", vim.log.levels.WARN)
|
||||
vim.notify("[test-samurai] no runner installed for this kind of test", vim.log.levels.WARN)
|
||||
return
|
||||
end
|
||||
|
||||
@@ -1959,7 +1952,7 @@ function M.run_file()
|
||||
|
||||
local runner = M.get_runner_for_buf(bufnr)
|
||||
if not runner then
|
||||
vim.notify("[test-samurai] No runner for this file", vim.log.levels.WARN)
|
||||
vim.notify("[test-samurai] no runner installed for this kind of test", vim.log.levels.WARN)
|
||||
return
|
||||
end
|
||||
|
||||
@@ -1992,7 +1985,7 @@ function M.run_all()
|
||||
|
||||
local runner = M.get_runner_for_buf(bufnr)
|
||||
if not runner then
|
||||
vim.notify("[test-samurai] No runner for this file", vim.log.levels.WARN)
|
||||
vim.notify("[test-samurai] no runner installed for this kind of test", vim.log.levels.WARN)
|
||||
return
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user