Marble Testing RxJS - throttleTime | debounceTime | bufferTime | buffer
4 min readFeb 26, 2021
Some examples to help you keep your marbles
The other day I wanted to add test coverage for a custom-built Pipeable RxJS Operator used for some touch screen input events. This is what the operator looked like:
const customBuffer = <T>(time: number): OperatorFunction<T, T[]> => ((source: Observable<T>): Observable<T[]>…