Codibre/jest-stub-super-constructor

View on GitHub
docs/README.md

Summary

Maintainability
Test Coverage
fluent-iterable - v0.3.0

# fluent-iterable - v0.3.0

## Table of contents

### Functions

- [stubSuperConstructor](README.md#stubsuperconstructor)

## Functions

### stubSuperConstructor

▸ **stubSuperConstructor**<T\>(`cls`: T): *Mock*<any, any\>

Stub the super call inside a constructor

#### Type parameters:

Name |
:------ |
`T` |

#### Parameters:

Name | Type | Description |
:------ | :------ | :------ |
`cls` | T | The class you want to stub the super on the constructor   |

**Returns:** *Mock*<any, any\>