Add debug configuration for unit tests + cleanup vscode tasks

Signed-off-by: Alex Culliere <alozhkin@mirantis.com>
This commit is contained in:
Alex Culliere committed 2021-03-05 12:48:21 +02:00
1 parent ad0f48246c
commit 80f895a4d4
2 files changed
+18 -24

No files matched your search

+18 -2
View File
@@ -34,8 +34,24 @@
"name": "Integration Tests",
"type": "node",
"request": "launch",
"console": "externalTerminal",
"runtimeArgs": ["${workspaceRoot}/node_modules/.bin/jest", "--runInBand", "integration"],
"console": "integratedTerminal",
"runtimeArgs": [
"${workspaceFolder}/node_modules/.bin/jest",
"--runInBand",
"integration"
],
},
{
"name": "Unit Tests",
"type": "node",
"request": "launch",
"internalConsoleOptions": "openOnSessionStart",
"program": "${workspaceFolder}/node_modules/jest/bin/jest.js",
"args": [
"--env=jsdom",
"-i",
"src"
]
}
],
}
-22
View File
@@ -3,25 +3,6 @@
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"type": "shell",
"label": "dev-server-renderer",
"group": "build",
"command": "yarn",
"args": [
"run",
"dev:renderer",
"&"
],
"isBackground": true,
"problemMatcher": {
"background": {
"activeOnStart": false,
"beginsPattern": "Compiling\\.\\.\\.$",
"endsPattern": "^No issues found\\.$"
}
}
},
{
"type": "shell",
"group": "build",
@@ -30,9 +11,6 @@
"debug-build"
],
"problemMatcher": [],
// "dependsOn": [
// "dev-server-renderer"
// ],
"label": "compile-dev",
"detail": "Compiles main and extension types"
}