Skip to content

Commit

Permalink
Mark function as async, add 'async.it' to other test
Browse files Browse the repository at this point in the history
  • Loading branch information
MisanthropicBit committed Mar 10, 2024
1 parent 2df7357 commit 371c92c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lua/neotest-jest/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ end
local getJestCommand = jest_util.getJestCommand
local getJestConfig = jest_util.getJestConfig

---@async
---@param file_path? string
---@return boolean
function adapter.is_test_file(file_path)
Expand Down
2 changes: 1 addition & 1 deletion tests/init_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ describe("is_test_file", function()
assert.True(plugin.is_test_file("./spec/basic.test.ts"))
end)

it("does not match plain js files", function()
async.it("does not match plain js files", function()
assert.False(plugin.is_test_file("./index.ts"))
end)
end)
Expand Down

0 comments on commit 371c92c

Please sign in to comment.