(size)
| 385 | |
| 386 | test('supports custom intermediate store', async () => { |
| 387 | const getFixedSizeArray = (size) => { |
| 388 | const arr = [] |
| 389 | return new Proxy(arr, { |
| 390 | get: (target, prop) => |
| 391 | prop === 'push' && arr.length >= size |
| 392 | ? () => { |
| 393 | /* noop */ |
| 394 | } |
| 395 | : target[prop], |
| 396 | }) |
| 397 | } |
| 398 | const store = { |
| 399 | stdout: getFixedSizeArray(1), |
| 400 | stderr: getFixedSizeArray(1), |
no outgoing calls
no test coverage detected
searching dependent graphs…