I have these:
An shell executable file:
function print() {
    echo 1
}
The package.json` file
{
  "name": "tests",
  "scripts": {
    "test": "./shell.sh"
  }
}
When I ran npm test on a linux machine, I got this error
> tests@ test /home/xxxx/test
> ./shell.sh
./shell.sh: 1: ./shell.sh: Syntax error: "(" unexpected
npm ERR! Test failed.  See above for more details.
Why so? Anybody has some insight? I am totally puzzled.
 
    