Closed marcoSven closed 8 months ago
@marcoSven Big thanks for your contribution! I left a couple of comments for you. One concern though: I noticed when testing the PR that the vitest process in watch mode sticks around until Neovim shuts down or Neotest stop is called. This could lead to a bunch of unwanted background processes if we're running lots of tests in watch mode. How do you handle it?
I noticed when testing the PR that the vitest process in watch mode sticks around until Neovim shuts down or Neotest stop is called.
I think this is the same with the Jest adapter.
@marcoSven thanks!
This commit introduces a feature to support the watch mode in neotest. In the previous implementation, the user had the ability to run tests but there was no provision to watch the files and run the tests when changes occur. This feature is particularly helpful while doing test-driven development where code changes frequently.
https://github.com/marilari88/neotest-vitest/assets/3860298/649933e2-6944-4bf0-a4e8-f487159a2d90
closes #27