This plugin provides a Vitest adapter for the Neotest framework.
Credits to neotest-jest
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)
use({
'rcarriga/neotest',
requires = {
...,
'marilari88/neotest-vitest',
}
config = function()
require('neotest').setup({
...,
adapters = {
require('neotest-vitest')
}
})
end
})
See neotest's documentation for more information on how to run tests.
Please raise a PR if you are interested in adding new functionality or fixing any bugs. When submitting a bug, please include an example spec that can be tested.
To trigger the tests for the adapter, run:
./scripts/test
Please file any bug reports and I might take a look if time permits otherwise please submit a PR, this plugin is intended to be by the community for the community.