WARNING: NODE_ENV value of 'test ' did not match any deployment config file names
Though the mentioned package in the accepted answer resolves the issue, it is good not to get more dependencies in your project's package.json
when the same can be sorted with a simple tweak as below: -
In your package.json
file by omitting the space before &&
. This will detect the environment(s) correctly without extra space after the name.