Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: enable debugging of unit test runner process
When CLI executes unit tests (for the NativeScript application), it forks a new Node.js process and communicates with it via IPC. However, the Node.js fork method has an issue when you want to debug your main process - it passes the `--inspect[-brk]` option to the forked process as well. The main process had already used the port, so debugging fails. In order to fix this, replace the `fork` with `spawn`.
- Loading branch information
1 parent
6167820
commit bead23d
Showing
2 changed files
with
5 additions
and
1 deletion.
There are no files selected for viewing
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
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