Skip to content

Commit

Permalink
πŸ“ Update readme file (#36)
Browse files Browse the repository at this point in the history
* πŸ“ Update readme file

* Update readme

* Update README.md

* Update README.md

* Update README.md
  • Loading branch information
marilari88 authored Dec 2, 2023
1 parent 41bf2f6 commit 15972c4
Showing 1 changed file with 35 additions and 5 deletions.
40 changes: 35 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,59 @@ This plugin provides a [Vitest](https://vitest.dev/) adapter for the [Neotest](h
Credits to [neotest-jest](https://github.com/haydenmeade/neotest-jest)

## Known issues
- ~~Wrong error location on collecting results - (this is related to Vitest reporting issue)~~ (solved by Vitest 0.23.0)

- test.each is currently not well supported (WIP)

## How to install it

### Lazy

```lua
{
"nvim-neotest/neotest",
dependencies = {
...,
"marilari88/neotest-vitest",
},
config = function()
require("neotest").setup({
...,
adapters = {
require("neotest-vitest"),
}
})
end,
}
```

### Packer

```lua
use({
'rcarriga/neotest',
"nvim-neotest/neotest",
requires = {
...,
'marilari88/neotest-vitest',
"marilari88/neotest-vitest",
}
config = function()
require('neotest').setup({
require("neotest").setup({
...,
adapters = {
require('neotest-vitest')
require("neotest-vitest")
}
})
end
})
```

Make sure you have Treesitter installed with the right language parser installed

```
:TSInstall javascript
```

## Usage

![usage preview](https://user-images.githubusercontent.com/32909388/185812063-d05d9cc7-b9aa-43ed-915b-cf156e3f0c52.gif)

See neotest's documentation for more information on how to run tests.
Expand Down

0 comments on commit 15972c4

Please sign in to comment.