From 3fc8caf3d98ee92522ea89e3756b9e96afe2b594 Mon Sep 17 00:00:00 2001 From: Anton Gilgur Date: Fri, 19 Aug 2022 17:02:15 -0400 Subject: [PATCH] test(cache): ignore coverage for corrupted cache check (#401) - similar to the other safety checks in `clean`, this won't be hit during normal usage --- src/tscache.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tscache.ts b/src/tscache.ts index 96e6bc8..71614a5 100644 --- a/src/tscache.ts +++ b/src/tscache.ts @@ -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")); }