remove built-in runner

This commit is contained in:
2026-01-02 15:21:42 +01:00
parent 58f0edc14b
commit f5fc9822ce
31 changed files with 23 additions and 6334 deletions

View File

@@ -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