--# selene: allow(multiple_statements) local neotest = require "neotest" local map = require("core.utils").map neotest.setup { adapters = { require "neotest-go" { experimental = { test_table = true } }, require "neotest-jest", }, icons = { expanded = "", child_prefix = "", child_indent = "", final_child_prefix = "", non_collapsible = "", collapsed = "", passed = "", running = "", failed = "", unknown = "", }, summary = { mappings = { expand = { "l", "h", "" }, stop = "s", }, }, } -- stylua: ignore start map("n", "tn", neotest.run.run) map("n", "ts", neotest.summary.toggle) map("n", "ta", neotest.run.attach) map("n", "tS", neotest.run.stop) map("n", "to", neotest.output.open) map("n", "]t", neotest.jump.next) map("n", "[t", neotest.jump.prev) map("n", "]T", function() neotest.jump.next { status = "failed" } end) map("n", "[T", function() neotest.jump.prev { status = "failed" } end) map("n", "td", function() neotest.run.run { strategy = "dap" } end) map("n", "tt", function() neotest.run.run(vim.fn.expand "%") ---@diagnostic disable-line: missing-parameter end) -- stylua: ignore end