Created
March 26, 2024 00:22
-
-
Save unjust/12bf3e2da6c94567ff9bb2c544fd0634 to your computer and use it in GitHub Desktop.
Debug e2e with jest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// 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