diff --git a/lua/neotest-jest/init.lua b/lua/neotest-jest/init.lua index 69a6aa5..a199bb7 100644 --- a/lua/neotest-jest/init.lua +++ b/lua/neotest-jest/init.lua @@ -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