wait-for-expect
- Version 4.0.0
- Published
- 38.3 kB
- No dependencies
- MIT license
Install
npm i wait-for-expect
yarn add wait-for-expect
pnpm add wait-for-expect
Overview
Wait for expectation to be true, useful for integration and end to end testing
Index
Variables
Variables
variable waitForExpect
const waitForExpect: { ( expectation: () => void | Promise<void>, timeout?: number, interval?: number ): Promise<void>; defaults: { timeout: number; interval: number };};
Waits for the expectation to pass and returns a Promise
Parameter expectation
Function Expectation that has to complete without throwing
Parameter timeout
Number Maximum wait interval, 4500ms by default
Parameter interval
Number Wait-between-retries interval, 50ms by default Promise Promise to return a callback result
Package Files (1)
Dependencies (0)
No dependencies.
Dev Dependencies (26)
- @babel/cli
- @babel/core
- @babel/plugin-proposal-class-properties
- @babel/plugin-proposal-object-rest-spread
- @babel/preset-env
- @babel/preset-typescript
- @types/eslint
- @types/eslint-plugin-prettier
- @types/jest
- @types/node
- @types/prettier
- @typescript-eslint/eslint-plugin
- @typescript-eslint/parser
- babel-core
- babel-jest
- babel-plugin-add-module-exports
- eslint
- eslint-config-airbnb-base
- eslint-config-prettier
- eslint-plugin-import
- eslint-plugin-prettier
- jest
- jest-serializer-ansi
- prettier
- semantic-release
- typescript
Peer Dependencies (0)
No peer dependencies.
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/wait-for-expect
.
- Markdown[](https://www.jsdocs.io/package/wait-for-expect)
- HTML<a href="https://www.jsdocs.io/package/wait-for-expect"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 2184 ms. - Missing or incorrect documentation? Open an issue for this package.