I have two separate projects that use npm - so I have both : some_base_folder/projectA/package.json and some_base_folder/projectB/package.json
some_base_folder/projectA/package.json
some_base_folder/projectB/package.json
well it turns out to be quite simple:
"scripts": { test_projectA:"cd ../projectA && npm run-script test" }