Skip to content

Commit

Permalink
remove special case for handling tests in windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Pineappletooth committed Jan 26, 2024
1 parent 7e05584 commit 24569db
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lua/neotest-jest/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -313,14 +313,6 @@ local function parsed_json_to_results(data, output_file, consoleOut)

for _, testResult in pairs(data.testResults) do
local testFn = testResult.name
if vim.loop.os_uname().sysname:find("Windows") == 1 then
-- Transforms C:\\path\file into c:\\path\file to match original testId
if string.match(testFn, "^%a:\\") then
local drive = testFn:sub(1, 1)
local restOfPath = testFn:sub(2)
testFn = drive:lower() .. restOfPath
end
end
for _, assertionResult in pairs(testResult.assertionResults) do
local status, name = assertionResult.status, assertionResult.title

Expand Down

0 comments on commit 24569db

Please sign in to comment.