From 0106c5aa0959d53d3434a8c9a064dce44cc725e2 Mon Sep 17 00:00:00 2001 From: Adam Tumgaev Date: Sun, 30 Oct 2022 06:59:40 +0100 Subject: [PATCH] Fixed: No tests found on Windows due to usage of backslashes instead of normal slashes --- lua/neotest-jest/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/neotest-jest/init.lua b/lua/neotest-jest/init.lua index 764f585..7282048 100644 --- a/lua/neotest-jest/init.lua +++ b/lua/neotest-jest/init.lua @@ -222,7 +222,7 @@ function adapter.build_spec(args) "--json", "--outputFile=" .. results_path, "--testNamePattern=" .. testNamePattern, - pos.path, + string.gsub(pos.path, '\\', '/'), }) local cwd = getCwd(pos.path)