I have some custom testing script, which I can run with npm run test command, which executes some Node script for starting e2e/unit tests. But before it I must star
See the source for more info. The npm.command object is an unofficial API for npm. Note that using exec or spawn to execute npm is safer, since the API is unofficial.