Marble Testing RxJS - throttleTime | debounceTime | bufferTime | buffer

Chris Dickinson
4 min readFeb 26, 2021

Some examples to help you keep your marbles

maybe in the future we’ll be visualizing our marble tests in 3D

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[]>…

--

--

Chris Dickinson

I write about spirituality, personal development, and code.