Caching exit code status of npm tests