Skip to content

Commit

Permalink
Merge pull request #80 from Jamie-505/enhance-jest-detection
Browse files Browse the repository at this point in the history
Enhance jest detection
  • Loading branch information
haydenmeade authored Mar 21, 2024
2 parents bdef19a + cd7079b commit 514fd4e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lua/neotest-jest/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,14 @@ local function hasJestDependency(path)
end
end

if parsedPackageJson["scripts"] then
for _, value in pairs(parsedPackageJson["scripts"]) do
if value == "jest" then
return true
end
end
end

return rootProjectHasJestDependency()
end

Expand Down

0 comments on commit 514fd4e

Please sign in to comment.