Skip to content

Instantly share code, notes, and snippets.

@kienstra
Last active November 18, 2020 19:53
Show Gist options
  • Save kienstra/7eeb395d7f17f8026bb9c5face623ae1 to your computer and use it in GitHub Desktop.
Save kienstra/7eeb395d7f17f8026bb9c5face623ae1 to your computer and use it in GitHub Desktop.
VS Code Jest debugging configuration for a WordPress plugin
{
"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