node2 -> node

This commit is contained in:
mightypanders 2023-04-20 17:14:39 +02:00
parent 3b8c2512c8
commit b5ba99fd76

View File

@ -4,7 +4,7 @@ local dap = require('dap')
local function debugJest(testName, filename)
print("starting " .. testName .. " in " .. filename)
dap.run({
type = 'node2',
type = 'node',
request = 'launch',
cwd = vim.fn.getcwd(),
runtimeArgs = {'--inspect-brk', '/usr/local/bin/jest', '--no-coverage', '-t', testName, '--', filename},
@ -19,7 +19,7 @@ end
local function attach()
print("attaching")
dap.run({
type = 'node2',
type = 'node',
request = 'attach',
cwd = vim.fn.getcwd(),
sourceMaps = true,
@ -31,7 +31,7 @@ end
local function attachToRemote()
print("attaching")
dap.run({
type = 'node2',
type = 'node',
request = 'attach',
address = "127.0.0.1",
port = 9229,