Skip to content

Commit

Permalink
refactor: Specify neotest adapters the proper, cleaner way.
Browse files Browse the repository at this point in the history
  • Loading branch information
chevcast committed Sep 17, 2024
1 parent ff15a0f commit 5c66b54
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions nvim/lua/plugins/neotest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,12 @@ return {
"marilari88/neotest-vitest",
"thenbe/neotest-playwright",
},
opts = function(_, opts)
table.insert(opts.adapters, require("neotest-plenary"))
table.insert(opts.adapters, require("neotest-vitest"))
table.insert(
opts.adapters,
require("neotest-playwright").adapter({
options = {
persist_project_selection = true,
enable_dynamic_test_discovery = true,
},
})
)
end,
opts = {
adapters = {
"neotest-plenary",
"neotest-vitest",
"neotest-playwright",
},
},
},
}

0 comments on commit 5c66b54

Please sign in to comment.