Closed fredrikaverpil closed 1 year ago
Hi @fredrikaverpil, it should only be using the following extensions: "js", "mjs", "cjs", "jsx", "coffee", "ts", "tsx"
.
@adrigzr It looks like the adapter matches any file with test
in the name https://github.com/adrigzr/neotest-mocha/blob/c22fc33015c4de4788b4a9394aeed6d7f4f1e949/lua/neotest-mocha/util.lua#L351-L353
I haven't gotten around trying to comment this part of the code out yet - but what's it for?
I just commented out that code and I no longer experience the original issue. I'll open up a PR if you don't mind?
Credit need to go to @rcarriga who found the issue! 😊
Hi!
I've got a project with both Python files and Javascript files, and neotest-mocha attempts to run the Python tests. My neotest summary looks like this, although I only have python files in the
tests
folder:Would it be possible to configure neotest-mocha so it only detects tests of a certain filetype or language?
This is my neotest config (dotfiles link here for the most up to date code):
Side-note: I also added a discussion thread on this topic over at neotest: https://github.com/nvim-neotest/neotest/discussions/256