I am using Hapi Lab test framework (https://github.com/hapijs/lab) instead of Mocha. I am trying to create a test setup so that I can put breakpoints into the code while running the tests. How can I do that?
I had asked Hapi community and this is the response I get https://github.com/hapijs/discuss/issues/370
Following on that response, I created a run/debug configuration as follows
Node interpreter: /usr/local/bin/node
With this configuration set, here are my observations (none successful so far)
1. Right click on the editor tab of the test code, select "Debug <filename>", I get the following error
Error running <filename>: Not found node_modules/lab/bin/_mocha
2. Right click on the test filename in the project browser and select "Debug <filename>, same error as above.
3. From the Run menu, choose "Debug Lab", it tries to debug some other file with the same name but in a different directory.
How can I get a debug configuration working with Lab?