28 lines
857 B
Lua
28 lines
857 B
Lua
require('helpers').edit_cf('pt', '/lua/plugins/test.lua')
|
|
|
|
return {
|
|
'nvim-neotest/neotest',
|
|
dependencies = {
|
|
'V13Axel/neotest-pest',
|
|
},
|
|
config = function()
|
|
require('neotest').setup {
|
|
adapters = {
|
|
require 'neotest-pest' {
|
|
sail_enabled = function()
|
|
return false
|
|
end,
|
|
parallel = 8,
|
|
pest_cmd = function()
|
|
local cmd = vim.g.neotest_pest_cmd or { 'vendor/bin/pest' }
|
|
if vim.g.neotest_debug then
|
|
cmd = { 'sh', '-c', 'XDEBUG_MODE=debug exec ' .. table.concat(cmd, ' ') .. ' "$@"' }
|
|
end
|
|
return cmd
|
|
end,
|
|
},
|
|
},
|
|
}
|
|
end,
|
|
}
|