Home > @wixc3/testing > createTestDisposables
Creates a disposable group that will be disposed after the test is done
Signature:
export declare function createTestDisposables(disposeHook?: Mocha.HookFunction): import("@wixc3/patterns").Disposables;
Parameter | Type | Description |
---|---|---|
disposeHook | Mocha.HookFunction | _(Optional)_ mocha hook to dispose the group, defaults to "afterEach" passing "after" will dispose after all tests |
Returns:
import(“@wixc3/patterns”).Disposables