node2 -> node
This commit is contained in:
		@@ -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,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user