Useful shared test helpers for writing apps that interact with npm.