From ee4250653c020f515bfcd509e1d7c2d08f1baf44 Mon Sep 17 00:00:00 2001 From: Katie Byers Date: Wed, 5 Oct 2022 22:04:31 -0700 Subject: [PATCH] add debug profile for integration test --- .vscode/launch.json | 36 ++++++++++++++++++++++++++++++++++++ .vscode/tasks.json | 25 +++++++++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 .vscode/launch.json create mode 100644 .vscode/tasks.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 00000000..67ab3c52 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,36 @@ +{ + // 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": [ + + { + "name": "Debug integration test build", + "type": "node", + "cwd": "${workspaceFolder}/example", + "request": "launch", + "preLaunchTask": "Install Integration Test Dependencies", + "runtimeExecutable": "${workspaceFolder}/example/node_modules/.bin/webpack", + "skipFiles": [ + "/**" + ], + "outputCapture": "std", + "internalConsoleOptions": "openOnSessionStart" + }, + { + "name": "Debug integration test script", + "type": "node", + "cwd": "${workspaceFolder}/example", + "request": "launch", + "preLaunchTask": "Build Integration Test Example App", + "runtimeExecutable": "node", + "runtimeArgs": ["test.js"], + "skipFiles": [ + "/**" + ], + "outputCapture": "std", + "internalConsoleOptions": "openOnSessionStart" + } + ] +} diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 00000000..e30d21d5 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,25 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "Set up local @sentry/webpack-plugin for linking", + "type": "shell", + "command": "yarn link > /dev/null 2>&1", + "options": {"cwd": "${workspaceFolder}"}, + }, + { + "label": "Install Integration Test Dependencies", + "type": "shell", + "command": "yarn && yarn link @sentry/webpack-plugin", + "options": {"cwd": "${workspaceFolder}/example"}, + "dependsOn": "Set up local @sentry/webpack-plugin for linking" + }, + { + "label": "Build Integration Test Example App", + "type": "shell", + "command": "yarn webpack", + "options": {"cwd": "${workspaceFolder}/example"}, + "dependsOn": "Install Integration Test Dependencies" + } + ] +}