(cacheStatus: FetchMetric['cacheStatus'])
| 220 | } |
| 221 | |
| 222 | function formatCacheStatus(cacheStatus: FetchMetric['cacheStatus']): string { |
| 223 | switch (cacheStatus) { |
| 224 | case 'hmr': |
| 225 | return green('(HMR cache)') |
| 226 | case 'hit': |
| 227 | return green('(cache hit)') |
| 228 | case 'miss': |
| 229 | case 'skip': |
| 230 | return yellow(`(cache ${cacheStatus})`) |
| 231 | default: |
| 232 | return cacheStatus satisfies never |
| 233 | } |
| 234 | } |
no test coverage detected