Skip to content

Commit

Permalink
fix(neotest): no tests found when getting root dir for directory
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcjkb committed Apr 14, 2024
1 parent 78cbea3 commit 1cc5e06
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [4.22.3] - 2024-04-14

### Fixed

- Neotest: No tests found when getting root directory for a project directory.

## [4.22.2] - 2024-04-14

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion lua/rustaceanvim/cargo.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function cargo.get_root_dir(file_name)
if reuse_active then
return reuse_active
end
local path = vim.fs.dirname(file_name)
local path = file_name:find('%.rs$') and vim.fs.dirname(file_name) or file_name
if not path then
return nil
end
Expand Down

0 comments on commit 1cc5e06

Please sign in to comment.