I have a nodejs project. I'm using the debugger (in IntelliJ if it matters) to step through tests. I'd like to configure my project using best practices so that when I'm using the debugger I modify the test timeout to be longer than the default 5 seconds. I am aware that I can put the following line in package.json to change the timeout.
{
"name": "my-project",
"jest": {
"testTimeout": 20000
}
}
But I'm looking for a way to modify the timeout only (and automatically) when debugging. I'm sure there is a good way, but I'm fairly new to nodejs and the conventions/mechanisms for setting up various envionments.