Skip to content

Commit

Permalink
feat: ignore non test files to avoid TS processing (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
cgimenes authored Mar 11, 2024
1 parent 2f01e83 commit d5e920a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lua/neotest-phpunit/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ end
---@param file_path string Absolute file path
---@return neotest.Tree | nil
function NeotestAdapter.discover_positions(path)
if not NeotestAdapter.is_test_file(path) then
return nil
end

local query = [[
((class_declaration
name: (name) @namespace.name (#match? @namespace.name "Test")
Expand Down

0 comments on commit d5e920a

Please sign in to comment.