Skip to content

Commit

Permalink
feat(typescript): add neotest-jest support
Browse files Browse the repository at this point in the history
  • Loading branch information
cristobalgvera committed Sep 2, 2024
1 parent bfbbe67 commit 7a2ee73
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions lua/astrocommunity/pack/typescript/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ This plugin pack does the following:
- Adds [nvim-vtsls](https://github.com/yioneko/nvim-vtsls) for language specific tooling
- Adds [package-info.nvim](https://github.com/vuki656/package-info.nvim) for project package management
- Adds [nvim-lsp-file-operations](https://github.com/antosha417/nvim-lsp-file-operations) to handles file imports on rename or move within neo-tree
- Adds [neotest-jest](https://github.com/nvim-neotest/neotest-jest) to ease the test running if `neotest` is installed

## How do I disable Eslint format on save?

Expand Down
9 changes: 9 additions & 0 deletions lua/astrocommunity/pack/typescript/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -233,4 +233,13 @@ return {
},
},
},
{
"nvim-neotest/neotest",
optional = true,
dependencies = { "nvim-neotest/neotest-jest" },
opts = function(_, opts)
if not opts.adapters then opts.adapters = {} end
table.insert(opts.adapters, require "neotest-jest" {})
end,
},
}

0 comments on commit 7a2ee73

Please sign in to comment.