(paths?: string[])
| 1532 | it('passes the exact pending paths to syncFn for plain file events', async () => { |
| 1533 | const calls: (string[] | undefined)[] = []; |
| 1534 | const syncFn: SyncFn = async (paths?: string[]) => { |
| 1535 | calls.push(paths); |
| 1536 | return { filesChanged: 1, durationMs: 5 }; |
| 1537 | }; |
| 1538 | const watcher = newWatcher(syncFn, { debounceMs: 30 }); |
| 1539 | expect(watcher.start()).toBe(true); |
| 1540 | fs.writeFileSync(path.join(testDir, 'src', 'a.ts'), 'export const a = 1;'); |