Skip to content

Commit

Permalink
feat: add debug configuration for vscode
Browse files Browse the repository at this point in the history
helps with single click debugging and setting breakpoints
  • Loading branch information
EresDev committed Jun 22, 2024
1 parent e4c4f4e commit 2eb0f97
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "build:tests",
"runtimeExecutable": "yarn",
"cwd": "${workspaceFolder}",
"runtimeArgs": ["build:tests"],
"console": "integratedTerminal"
},
{
"type": "node",
"request": "launch",
"name": "Test current file",
"program": "${workspaceFolder}/node_modules/.bin/jest",
"args": ["--runTestsByPath", "${relativeFile}", "--config", "jest.config.ts"],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"windows": {
"program": "${workspaceFolder}/node_modules/jest/bin/jest"
},
"preLaunchTask": "Build tests"
}
]
}
12 changes: 12 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Build tests",
"type": "shell",
"command": "yarn build:tests"
}
]
}

0 comments on commit 2eb0f97

Please sign in to comment.