When using the API, and specifying a different workingDir, the process crashes with the following error:
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined
It was originally reported in issue #228 and and fixed in PR #229 but a test is still missing to get it merged.
This PR applies the same fix, and adds a test to validate the error does not occur anymore.
When using the API, and specifying a different
workingDir
, the process crashes with the following error:TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined
It was originally reported in issue #228 and and fixed in PR #229 but a test is still missing to get it merged. This PR applies the same fix, and adds a test to validate the error does not occur anymore.