Skip to content

Commit

Permalink
Merge pull request #92 from tolik505/allow_e2e-spec
Browse files Browse the repository at this point in the history
Consider .e2e-spec. prefix as a test file
  • Loading branch information
haydenmeade authored Dec 17, 2023
2 parents a58794c + 6bca49f commit a394106
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/neotest-jest/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ function adapter.is_test_file(file_path)
is_test_file = true
end

for _, x in ipairs({ "spec", "test", "unit", "regression", "integration" }) do
for _, x in ipairs({ "spec", "e2e%-spec", "test", "unit", "regression", "integration" }) do
for _, ext in ipairs({ "js", "jsx", "coffee", "ts", "tsx" }) do
if string.match(file_path, "%." .. x .. "%." .. ext .. "$") then
is_test_file = true
Expand Down

0 comments on commit a394106

Please sign in to comment.