diff --git a/__tests__/cache-save.test.ts b/__tests__/cache-save.test.ts index 79a28fd4..a142e40d 100644 --- a/__tests__/cache-save.test.ts +++ b/__tests__/cache-save.test.ts @@ -343,8 +343,9 @@ describe('run', () => { expect(getInputSpy).not.toHaveBeenCalled(); expect(getStateSpy).toHaveBeenCalledTimes(4); expect(getCommandOutputSpy).toHaveBeenCalledTimes(0); - expect(debugSpy).toHaveBeenCalledTimes(0); - expect(infoSpy).not.toHaveBeenCalledWith( + expect(debugSpy).toHaveBeenLastCalledWith( + `Cache was not saved for the key: ${yarnFileHash}` + ); expect(infoSpy).not.toHaveBeenCalledWith( `Cache hit occurred on the primary key ${npmFileHash}, not saving cache.` ); expect(saveCacheSpy).toHaveBeenCalled();