npm: replace test with required_if (#6848) * npm: replace test with required_if * add changelog frag (cherry picked from commit 11406715f5) Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
11406715f5