Skip to content

Instantly share code, notes, and snippets.

@ryanrosello-og
Last active July 9, 2022 11:14
Show Gist options
  • Save ryanrosello-og/dce726585d31b31001cf31cef2a2ce22 to your computer and use it in GitHub Desktop.
Save ryanrosello-og/dce726585d31b31001cf31cef2a2ce22 to your computer and use it in GitHub Desktop.
Playwright VSCode Launch Profile
// package.json
{
"name": "fancy_vscode_launch_profiles",
"version": "1.0.0",
"scripts": {
"vscode-debug": "playwright test --config ./playwright.config.ts --workers=1"
},
"devDependencies": {
"@playwright/test": "^1.22.2"
}
}
// launch.json
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Playwright tests",
"console": "integratedTerminal",
"skipFiles": [
"<node_internals>/**"
],
"runtimeExecutable": "npm",
"runtimeArgs": ["run-script", "vscode-debug", "--", "${fileBasename}"],
},
{
"type": "node",
"request": "launch",
"name": "Playwright Inspector",
"console": "integratedTerminal",
"skipFiles": [
"<node_internals>/**"
],
"runtimeExecutable": "npm",
"runtimeArgs": ["run-script", "vscode-debug", "--", "${fileBasename}"],
"env": {
"PWDEBUG": "1",
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment