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

Configuring neotest-jest tests for local development #114

Open
conermurphy opened this issue Mar 29, 2024 · 1 comment
Open

Configuring neotest-jest tests for local development #114

conermurphy opened this issue Mar 29, 2024 · 1 comment

Comments

@conermurphy
Copy link
Contributor

I'm looking to help write some tests for the repo, namely to try help with the issue I raised earlier this week #113 and try find the cause of the issue.

However, when I try to configure the tests locally following the documentation in the README, I'm returned the below error and can't find any other documentation/issues to help debug it so hopefully someone else might know the answer and what I can do to remedy this issue and get the tests running locally.

Output of the ./scripts/test command:

Error detected while processing command line:
E492: Not an editor command: PlenaryBustedDirectory tests/ {minimal_init = 'tests/init.vim'}

Worth noting that this just hangs forever and I have to force exit out of it.

@MisanthropicBit
Copy link
Contributor

MisanthropicBit commented Jul 26, 2024

My guess would be that the paths set up in tests/init.vim when neovim is executed in the ./scripts/test script don't correspond to the installation paths of those plugins in your local setup. Consequently, plenary isn't set up correctly so when neovim runs the PlenaryBustedDirectory command, you get the above error message. So you would have to update the paths to match your local installations of those plugins.

I would suspect you need to force exit the command because running nvim --headless -u NONE -c ThisCommandDoesNotExist will hang. You would instead do something like nvim --headless -u NONE -c ThisCommandDoesNotExist -c quitall to make it quit after running the command. This might be doable even though the output of the neovim process is piped to tee.

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

2 participants