Skip to content

Commit

Permalink
chore: add several ts cli launch configs
Browse files Browse the repository at this point in the history
Launching the Typescript CLI in the debugger can be useful for
tracing through and introspecting on CLI behavior.

Adding a few common test workflows that transit the Typescript CLI
codebase along different routes.
  • Loading branch information
cmars authored and thisislawatts committed Sep 4, 2024
1 parent cc37b6a commit e4e1832
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,38 @@
"${workspaceRoot}/node_modules/.bin/jest",
"--runInBand"
]
},
{
"type": "node",
"request": "launch",
"name": "snyk test",
"console": "integratedTerminal",
"program": "node_modules/.bin/ts-node",
"args": ["./src/cli/index.ts", "test"]
},
{
"type": "node",
"request": "launch",
"name": "snyk test --unmanaged",
"console": "integratedTerminal",
"program": "node_modules/.bin/ts-node",
"args": ["./src/cli/index.ts", "test", "--unmanaged"]
},
{
"type": "node",
"request": "launch",
"name": "snyk container test",
"console": "integratedTerminal",
"program": "node_modules/.bin/ts-node",
"args": ["./src/cli/index.ts", "container", "test", "snyk/snyk:linux"]
},
{
"type": "node",
"request": "launch",
"name": "snyk iac test",
"console": "integratedTerminal",
"program": "node_modules/.bin/ts-node",
"args": ["./src/cli/index.ts", "iac", "test", "--unmanaged"]
}
]
}

0 comments on commit e4e1832

Please sign in to comment.