Skip to content

Commit

Permalink
fix(testables): support neotest executor when using nextest
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcjkb committed Feb 11, 2024
1 parent 19e7a9a commit c369a48
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
and support the 2024 edition
via `unstable-options`.

### Fixed

- Testables: Support `neotest` executor when using `nextest`.

## [4.6.0] - 2024-02-07

### Added
Expand Down
2 changes: 1 addition & 1 deletion lua/rustaceanvim/runnables.lua
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ function M.run_command(choice, runnables)
return
end

if #args > 0 and vim.startswith(args[1], 'test') then
if #args > 0 and (vim.startswith(args[1], 'test') or vim.startswith(args[1], 'nextest')) then
opts.test_executor.execute_command(command, args, cwd, {
bufnr = vim.api.nvim_get_current_buf(),
runnable = runnables[choice],
Expand Down

0 comments on commit c369a48

Please sign in to comment.