vim_test.lua 542 B

1234567891011121314151617
  1. local cmd = vim.cmd
  2. cmd [[
  3. let test#javascript#mocha#file_pattern = '\v((test|spec)s?/.*|(spec))\.(js|jsx|coffee|ts)$'
  4. let test#javascript#webdriverio#file_pattern = '\v((test|spec)s?/.*|(test|spec))\.(js|jsx|coffee|ts)$'
  5. ]]
  6. vim.g['test#strategy'] = "neovim"
  7. vim.g['test#javascript#mocha#executable'] = 'mocha'
  8. -- vim.g['test#javascript#runner'] = 'jest'
  9. vim.g['test#javascript#runner'] = 'mocha'
  10. -- vim.g['test#javascript#runner'] = 'webdriverio'
  11. vim.g['test#python#runner'] = 'pytest'
  12. vim.g['test#go#gotest#executable'] = 'grc go test'