klen / nvim-test

A Neovim wrapper for running tests
MIT License
180 stars 27 forks source link

fix: use the correct filetype for javascriptreact #22

Closed imobachgs closed 1 year ago

imobachgs commented 1 year ago

First of all, thanks for such a handy plugin :-)

This PR fixes a problem I found while working with a javascriptreact file. It is just a typo (a missing 's') that causes the runner to not be assigned to that kind of files.

As a workaround, you can just set the proper value in your call to the setup function:


test.setup {
  -- other options...
  runners = {
    javascriptreact = "nvim-test.runners.jest"
  }
}

I hope it helps.

Thanks!