From 8569b843e241f80704eb70ce4e6ea8b44fda55af Mon Sep 17 00:00:00 2001 From: Bert Ong <823691+beltr0n@users.noreply.github.com> Date: Tue, 2 Feb 2021 18:38:06 -0800 Subject: [PATCH] Communications - VS Code debug fixes (#13550) * update mocha vs code launch settings * remove invalid path from launch json --- .../communication-administration/.vscode/launch.json | 5 ++++- sdk/communication/communication-chat/.vscode/launch.json | 6 +++--- .../communication-identity/.vscode/launch.json | 5 ++++- sdk/communication/communication-sms/.vscode/launch.json | 6 +++--- 4 files changed, 14 insertions(+), 8 deletions(-) diff --git a/sdk/communication/communication-administration/.vscode/launch.json b/sdk/communication/communication-administration/.vscode/launch.json index 0838e97b6317..6978049bdb4e 100644 --- a/sdk/communication/communication-administration/.vscode/launch.json +++ b/sdk/communication/communication-administration/.vscode/launch.json @@ -17,7 +17,10 @@ "--colors", "${workspaceFolder}/test/*.spec.ts" ], - "env": { "TS_NODE_COMPILER_OPTIONS": "{\"module\": \"commonjs\"}" }, + "env": { + "TS_NODE_COMPILER_OPTIONS": "{\"module\": \"commonjs\"}", + "NODE_PATH": "${workspaceFolder}/../../../common/temp/node_modules/.pnpm/node_modules" + }, "console": "integratedTerminal", "internalConsoleOptions": "neverOpen", "protocol": "inspector" diff --git a/sdk/communication/communication-chat/.vscode/launch.json b/sdk/communication/communication-chat/.vscode/launch.json index 458b9b5c32c6..6978049bdb4e 100644 --- a/sdk/communication/communication-chat/.vscode/launch.json +++ b/sdk/communication/communication-chat/.vscode/launch.json @@ -15,11 +15,11 @@ "--timeout", "999999", "--colors", - "${workspaceFolder}/test/*.spec.ts", - "${workspaceFolder}/test/node/*.spec.ts" + "${workspaceFolder}/test/*.spec.ts" ], "env": { - "TS_NODE_COMPILER_OPTIONS": "{\"module\": \"commonjs\"}" + "TS_NODE_COMPILER_OPTIONS": "{\"module\": \"commonjs\"}", + "NODE_PATH": "${workspaceFolder}/../../../common/temp/node_modules/.pnpm/node_modules" }, "console": "integratedTerminal", "internalConsoleOptions": "neverOpen", diff --git a/sdk/communication/communication-identity/.vscode/launch.json b/sdk/communication/communication-identity/.vscode/launch.json index 0838e97b6317..6978049bdb4e 100644 --- a/sdk/communication/communication-identity/.vscode/launch.json +++ b/sdk/communication/communication-identity/.vscode/launch.json @@ -17,7 +17,10 @@ "--colors", "${workspaceFolder}/test/*.spec.ts" ], - "env": { "TS_NODE_COMPILER_OPTIONS": "{\"module\": \"commonjs\"}" }, + "env": { + "TS_NODE_COMPILER_OPTIONS": "{\"module\": \"commonjs\"}", + "NODE_PATH": "${workspaceFolder}/../../../common/temp/node_modules/.pnpm/node_modules" + }, "console": "integratedTerminal", "internalConsoleOptions": "neverOpen", "protocol": "inspector" diff --git a/sdk/communication/communication-sms/.vscode/launch.json b/sdk/communication/communication-sms/.vscode/launch.json index 458b9b5c32c6..6978049bdb4e 100644 --- a/sdk/communication/communication-sms/.vscode/launch.json +++ b/sdk/communication/communication-sms/.vscode/launch.json @@ -15,11 +15,11 @@ "--timeout", "999999", "--colors", - "${workspaceFolder}/test/*.spec.ts", - "${workspaceFolder}/test/node/*.spec.ts" + "${workspaceFolder}/test/*.spec.ts" ], "env": { - "TS_NODE_COMPILER_OPTIONS": "{\"module\": \"commonjs\"}" + "TS_NODE_COMPILER_OPTIONS": "{\"module\": \"commonjs\"}", + "NODE_PATH": "${workspaceFolder}/../../../common/temp/node_modules/.pnpm/node_modules" }, "console": "integratedTerminal", "internalConsoleOptions": "neverOpen",