Last active
November 18, 2020 19:53
-
-
Save kienstra/7eeb395d7f17f8026bb9c5face623ae1 to your computer and use it in GitHub Desktop.
VS Code Jest debugging configuration for a WordPress plugin
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
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "WP Plugin Jest unit tests", | |
"type": "node", | |
"request": "launch", | |
"protocol": "inspector", | |
"cwd": "${workspaceFolder}/sitio/wp-content/plugins/augmented-reality/", | |
"program": "${workspaceFolder}/sitio/wp-content/plugins/augmented-reality/node_modules/@wordpress/scripts/scripts/test-unit-jest.js", | |
"args": [ | |
"--runInBand", | |
], | |
"runtimeArgs": [ | |
"--nolazy", | |
"--inspect", | |
"--inspect-brk" | |
], | |
"console": "integratedTerminal", | |
"internalConsoleOptions": "neverOpen" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment