
Product
Introducing Rust Support in Socket
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.
@types/enzyme-async-helpers
Advanced tools
TypeScript definitions for enzyme-async-helpers
npm install --save @types/enzyme-async-helpers
This package contains type definitions for enzyme-async-helpers (https://github.com/zth/enzyme-async-helpers).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/enzyme-async-helpers.
import { EnzymeSelector, ReactWrapper } from "enzyme";
export function waitForState(
wrapper: ReactWrapper,
stateValidationFn: (state: object) => boolean,
config?: Config,
): Promise<void>;
export function waitForElement(
wrapper: ReactWrapper,
elementSelector: EnzymeSelector,
config?: Config,
): Promise<void>;
export function waitForProps(
wrapper: ReactWrapper,
propsValidationFn: (props: object) => boolean,
config?: Config,
): Promise<void>;
export interface Config {
interval?: number | undefined; // Default: 50, how often to check for validity
timeout?: number | undefined; // Default: 2000 (2 seconds), how long to wait before timing out
timeoutMessage?: string | undefined;
logStructureOnTimeout?: boolean | undefined; // Default: true, logs the wrapper's rendered structure when the wait times out. An attempt to help out in finding what's wrong.
logStructureOnSuccess?: boolean | undefined; // Default: false, logs the wrapper's rendered structure on success.
}
These definitions were written by Kim Ehrenpohl.
FAQs
TypeScript definitions for enzyme-async-helpers
The npm package @types/enzyme-async-helpers receives a total of 1,093 weekly downloads. As such, @types/enzyme-async-helpers popularity was classified as popular.
We found that @types/enzyme-async-helpers demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.
Product
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.