(n: number)
| 122 | |
| 123 | it('scales impact with read count', () => { |
| 124 | const make = (n: number) => Array.from({ length: n }, (_, i) => |
| 125 | call('Read', { file_path: `/x/node_modules/file-${i}.js` }) |
| 126 | ) |
| 127 | expect(detectJunkReads(make(25))!.impact).toBe('high') |
| 128 | expect(detectJunkReads(make(10))!.impact).toBe('medium') |
| 129 | }) |