Skip to content

Instantly share code, notes, and snippets.

@unjust
Created March 26, 2024 00:22
Show Gist options
  • Save unjust/12bf3e2da6c94567ff9bb2c544fd0634 to your computer and use it in GitHub Desktop.
Save unjust/12bf3e2da6c94567ff9bb2c544fd0634 to your computer and use it in GitHub Desktop.
Debug e2e with jest
{
// 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 E2E",
"request": "launch",
"skipFiles": [
"<node_internals>/**"
],
"type": "node",
"program": "${workspaceFolder}/node_modules/jest/bin/jest",
"args": [
"--verbose",
"--testPathPattern",
"e2e",
"--globalSetup",
"./e2e/globalSetup",
"--globalTeardown",
"./e2e/globalTeardown",
"--runInBand",
]
},
{
"type": "node",
"request": "attach",
"name": "Docker: Attach to Node",
"restart": true,
"port": 9229,
"address": "localhost",
"localRoot": "${workspaceFolder}",
"remoteRoot": "/usr/src/app",
"protocol": "inspector"
},
{
"type": "pwa-node",
"request": "launch",
"name": "Launch Program",
"skipFiles": [
"<node_internals>/**"
],
"program": "${workspaceFolder}/index.js"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment