Within my package.json
file, I currently have the following script:
"scripts": {
"test": "react-scripts test --watchAll=false"
},
I am looking to modify this script command dynamically so it becomes:
"test": "react-scripts test --watchAll=true"
Is there a way to achieve this without directly editing the package.json file?
Alternatively, is there a method to exclude any watch option entirely, resulting in:
react-scripts test
When invoking the script using npm run test
.