Skip to content

Commit

Permalink
test(cache): ignore coverage for corrupted cache check (#401)
Browse files Browse the repository at this point in the history
- similar to the other safety checks in `clean`, this won't be hit during normal usage
  • Loading branch information
agilgur5 authored Aug 19, 2022
1 parent 697e839 commit 3fc8caf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tscache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ export class TsCache
cache.write(hash, data);
return data;
}
else
else /* istanbul ignore next -- should only happen when corrupted cache */
this.context.warn(yellow(" cache broken, discarding"));
}

Expand Down

0 comments on commit 3fc8caf

Please sign in to comment.