Skip to content

Commit 3fc8caf

Browse files
authored
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
1 parent 697e839 commit 3fc8caf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tscache.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ export class TsCache
265265
cache.write(hash, data);
266266
return data;
267267
}
268-
else
268+
else /* istanbul ignore next -- should only happen when corrupted cache */
269269
this.context.warn(yellow(" cache broken, discarding"));
270270
}
271271

0 commit comments

Comments
 (0)