Installation
npm install --save @types/jasmine-enzyme
Summary
This package contains type definitions for jasmine-enzyme (https://github.com/formidablelabs/enzyme-matchers/packages/jasmine-enzyme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jasmine-enzyme.
index.d.ts
/// <reference types="jasmine" />
/// <reference types="react" />
declare function jasmineEnzyme(): void;
export default jasmineEnzyme;
declare global {
namespace jasmine {
interface Matchers<T> {
toBeChecked(): void;
toBeDisabled(): void;
toBeEmptyRender(): void;
toContainMatchingElement(selector: string): void;
toContainMatchingElements(num: number, selector: string): void;
toContainExactlyOneMatchingElement(selector: string): void;
toContainReact(reactInstance: React.JSX.Element): void;
toExist(): void;
toHaveClassName(className: string): void;
toHaveDisplayName(tagName: string): void;
toHaveHTML(html: string): void;
toHaveProp(propKey: string, propValue?: any): void;
toHaveRef(refName: string): string;
toHaveState(stateKey: string, stateValue?: any): void;
toHaveStyle(styleKey: string, styleValue?: any): void;
toHaveTagName(tagName: string): void;
toHaveText(text?: string): void;
toIncludeText(text: string): void;
toHaveValue(value: any): void;
toMatchElement(reactInstance: React.JSX.Element): void;
toMatchSelector(selector: string): void;
}
}
}
Additional Details
- Last updated: Wed, 06 Dec 2023 06:08:17 GMT
- Dependencies: @types/jasmine, @types/react
Credits
These definitions were written by Umar Bolatov, and Steve Gravrock.