* Check if file is cached with matching hash
(filePath: string, contentHash: string)
| 340 | * Check if file is cached with matching hash |
| 341 | */ |
| 342 | isFileValid(filePath: string, contentHash: string): boolean { |
| 343 | const normalizedPath = this.toRelativePath(filePath); |
| 344 | const cached = this.files[normalizedPath]; |
| 345 | return cached !== undefined && cached.hash === contentHash; |
| 346 | } |
| 347 | |
| 348 | /** |
| 349 | * Check if file exists in cache (regardless of hash) |
no test coverage detected