From f331269ef4236ee4368da68a66101eecf30bf3ea Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Mon, 13 May 2019 21:11:38 -0700 Subject: [PATCH] Support debugging integration tests --- .vscode/launch.json | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index e5bad7b32d..f0bc9be854 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -13,7 +13,25 @@ "runtimeArgs": [ "--colors", "--recursive", - "${workspaceRoot}/lib" + "${workspaceRoot}/lib/**/*.test.js" + ], + "sourceMaps": true, + "outFiles": [ "${workspaceRoot}/lib/**/*.js" ], + "internalConsoleOptions": "openOnSessionStart" + }, + { + "type": "node", + "request": "launch", + "name": "Integration Tests", + "cwd": "${workspaceRoot}", + "runtimeExecutable": "${workspaceRoot}/node_modules/.bin/mocha", + "windows": { + "runtimeExecutable": "${workspaceRoot}/node_modules/.bin/mocha.cmd" + }, + "runtimeArgs": [ + "--colors", + "--recursive", + "${workspaceRoot}/lib/**/*.api.js" ], "sourceMaps": true, "outFiles": [ "${workspaceRoot}/lib/**/*.js" ],