.vscode/launch.json
{
// 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": [
{
"type": "node",
"request": "launch",
"name": "Test - Source plugin",
"cwd": "${workspaceFolder}/packages/gatsby-source",
"program": "${workspaceFolder}/node_modules/.bin/jest",
"args": [
"--runInBand"
],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"windows": {
"program": "${workspaceFolder}/node_modules/jest/bin/jest",
},
"sourceMaps": true,
"smartStep": true
},
{
"type": "node",
"request": "launch",
"name": "Test source package current file",
"cwd": "${workspaceFolder}/packages/gatsby-source",
"program": "${workspaceFolder}/node_modules/.bin/jest",
"args": [
"${fileBasename}"
],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"windows": {
"program": "${workspaceFolder}/node_modules/jest/bin/jest",
},
"sourceMaps": true,
"smartStep": true
},
{
"type": "node",
"request": "launch",
"protocol": "inspector",
"name": "Develop site",
"program": "${workspaceFolder}/node_modules/gatsby/dist/bin/gatsby",
"args": [
"develop",
"--verbose"
],
"stopOnEntry": false,
"cwd": "${workspaceFolder}/site",
"preLaunchTask": null,
"runtimeExecutable": null,
"runtimeArgs": [
"--nolazy"
],
"restart": true,
"internalConsoleOptions": "neverOpen",
"env": {
"NODE_ENV": "development",
"ENABLE_GATSBY_REFRESH_ENDPOINT": "true",
// "DEBUG": "gatsby:*"
},
"console": "integratedTerminal",
"skipFiles": [
"<node_internals>/**/*.js"
]
}
]
}