local git_ref = '0e7979d51301dfae5ef839d771bd28cf593fde3f'
local modrev = 'scm'
local specrev = '1'

local repo_url = 'https://github.com/nvim-neotest/neotest-jest'

rockspec_format = '3.0'
package = 'neotest-jest'
version = modrev ..'-'.. specrev

description = {
  summary = 'A jest adapter for the Neotest framework',
  detailed = '',
  labels = { 'neovim' } ,
  homepage = 'https://github.com/nvim-neotest/neotest-jest',
  license = 'MIT'
}

dependencies = { 'lua >= 5.1', 'neotest >= 4.0.0', 'plenary.nvim', 'tree-sitter-javascript' } 

test_dependencies = { }

source = {
  url = repo_url .. '/archive/' .. git_ref .. '.zip',
  dir = 'neotest-jest-' .. '0e7979d51301dfae5ef839d771bd28cf593fde3f',
}

if modrev == 'scm' or modrev == 'dev' then
  source = {
    url = repo_url:gsub('https', 'git')
  }
end

build = {
  type = 'builtin',
  copy_directories = { },
}
