launch.json 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. {
  2. // Use IntelliSense to learn about possible attributes.
  3. // Hover to view descriptions of existing attributes.
  4. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
  5. "version": "0.2.0",
  6. "configurations": [
  7. {
  8. "type": "node",
  9. "request": "launch",
  10. "name": "Debug Jest Tests",
  11. "cwd": "${workspaceFolder}",
  12. "args": [
  13. "--inspect-brk",
  14. "${workspaceRoot}/node_modules/.bin/jest",
  15. "--runInBand",
  16. "--config",
  17. "${workspaceRoot}/jestconfig.json"
  18. ],
  19. "windows": {
  20. "args": [
  21. "--inspect-brk",
  22. "${workspaceRoot}/node_modules/jest/bin/jest.js",
  23. "--runInBand",
  24. "--config",
  25. "${workspaceRoot}/jestconfig.json"
  26. ],
  27. },
  28. "console": "integratedTerminal",
  29. "internalConsoleOptions": "neverOpen"
  30. },
  31. {
  32. "type": "node",
  33. "request": "launch",
  34. "name": "Launch Program",
  35. "program": "${workspaceFolder}/lib/index.js",
  36. "preLaunchTask": "tsc: build - tsconfig.json",
  37. "outFiles": [
  38. "${workspaceFolder}/lib/**/*.js"
  39. ]
  40. }
  41. ]
  42. }