(ms: number = FILM_BEAT_MS)
| 81 | |
| 82 | /** Hold for the viewer — a no-op unless this run is being filmed. */ |
| 83 | export const beat = async (ms: number = FILM_BEAT_MS): Promise<void> => { |
| 84 | if (!isFilming()) return; |
| 85 | await new Promise((tick) => setTimeout(tick, ms)); |
| 86 | }; |
| 87 | |
| 88 | /** |
| 89 | * Focus `window`, lingering a beat on the OUTGOING window first when this is a |
no test coverage detected