UNPKG

@rxjs-stuff/marbles

Version:

A set of plugins that provide a natural feeling integration with Mocha and Chai for RxJS "marbles" testing.

41 lines (31 loc) 933 B
import 'mocha' import { MarblesHelpers } from '@rxjs-stuff/marbles' declare global { export namespace Mocha { interface ExclusiveMarblesSuiteFunction { (title: string): Suite (title: string, fn: (this: Suite, helpers?: MarblesHelpers) => void): Suite } interface PendingMarblesSuiteFunction { (title: string, fn: (this: Suite, helpers?: MarblesHelpers) => void): Suite } interface MarblesSuiteFunction { (title: string): Suite (title: string, fn: (this: Suite, helpers?: MarblesHelpers) => void): Suite only: ExclusiveMarblesSuiteFunction skip: PendingMarblesSuiteFunction } interface PendingSuiteFunction { marbles: MarblesSuiteFunction } interface SuiteFunction { marbles: MarblesSuiteFunction } interface TestFunction { noMarbles: TestFunction } interface Suite { marblesEnabled?: boolean } } }