launch.json 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. {
  2. // Hover to view descriptions of existing attributes.
  3. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
  4. "version": "0.2.0",
  5. "configurations": [
  6. {
  7. "name": "Debug UnitTest",
  8. "type": "node",
  9. "request": "launch",
  10. "runtimeArgs": [
  11. "--inspect-brk",
  12. "${workspaceRoot}/node_modules/jest/bin/jest",
  13. "packages/semi-ui/hotKeys/", // Replace with the folder path of the component you want to debug
  14. "--runInBand",
  15. "--silent" // ignore warning such as componentWillReceiveProps will be abondon...
  16. ],
  17. "env": {
  18. "NODE_ENV": "test",
  19. "type": "unit"
  20. },
  21. "console": "integratedTerminal",
  22. "internalConsoleOptions": "neverOpen",
  23. "port": 9229
  24. },
  25. {
  26. "name": "Debug StorySnapShot",
  27. "type": "node",
  28. "request": "launch",
  29. "runtimeArgs": [
  30. "--inspect-brk",
  31. "${workspaceRoot}/node_modules/jest/bin/jest",
  32. "--runInBand",
  33. "--silent" // ignore warning such as componentWillReceiveProps will be abondon...
  34. ],
  35. "env": {
  36. "NODE_ENV": "test",
  37. "type": "story"
  38. },
  39. "console": "integratedTerminal",
  40. "internalConsoleOptions": "neverOpen",
  41. "port": 9229
  42. }
  43. ]
  44. }