What is the best practice way when invoking tests with npm to start a Node.js server and then run the test command? I am trying the following in my package.json, but it is failing. Note, I need to invoke node api.js in the background and then I wish to exit it after the jasmine-node command finishes.
"scripts": {
"test": "node api.js & && jasmine-node test"
}