Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All tests "skipped" (ie "pending") #135

Open
Tylerc230 opened this issue Jan 3, 2025 · 0 comments
Open

All tests "skipped" (ie "pending") #135

Tylerc230 opened this issue Jan 3, 2025 · 0 comments

Comments

@Tylerc230
Copy link

The status of all my tests is 'pending' in the outputFile when I run my jest tests from neotestj. If I run the same command from the command line, they all pass. My LazyVim config is:

return {
  {
    "nvim-neotest/neotest-jest",
    config = function()
      LazyVim.on_load("neotest", function()
        require("neotest-jest")({
          jestCommand = "npx jest ",
        })
      end)
    end,
  },
  {
    "nvim-neotest/neotest",
    opts = {
      adapters = { "neotest-jest" },
      log_level = vim.log.levels.DEBUG, -- Set the log level
    },
  },
}

The command being run by neotest is: npx jest --config=/path/to/config --no-coverage --testLocationInResults --verbose --json --outputFile=/var/folders/cv/m66w261n2sv7c4q_c3w465x00000gr/T/lazyvim.cstyle/hv4kaA/3.json --testNamePattern='.*' --forceExit \\/path\/to\/testfil.test.ts
Any ideas why its not working?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant