Skip to content

Commit

Permalink
Vim: in Deno project, set g:test#javascript#runner to denotest
Browse files Browse the repository at this point in the history
  • Loading branch information
kg8m committed Aug 17, 2024
1 parent bfd4867 commit f600897
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .config/vim/autoload/kg8m/plugin/test.vim
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
vim9script

import autoload "kg8m/util.vim"
import autoload "kg8m/util/filetypes/javascript.vim" as jsUtil
import autoload "kg8m/util/terminal.vim" as terminalUtil

augroup vimrc-plugin-test
Expand All @@ -16,6 +16,10 @@ export def OnSource(): void

g:test#preserve_screen = true

if jsUtil.ShouldUseDeno()
g:test#javascript#runner = "denotest"
endif

g:test#javascript#denotest#options = "--allow-all --no-check"
g:test#go#gotest#options = "-race"
g:test#ruby#bundle_exec = false
Expand Down

0 comments on commit f600897

Please sign in to comment.