Skip to main content

Type Alias: AsyncPropertyHookFunction

AsyncPropertyHookFunction = ((previousHookFunction) => Promise<unknown>) | ((previousHookFunction) => void)

Defined in: packages/fast-check/src/check/property/AsyncProperty.generic.ts:24

Type of legal hook function that can be used to call beforeEach or afterEach on a IAsyncPropertyWithHooks

Deprecated

Prefer beforeEach and/or afterEach plugins: fc.assert(property, { plugins: [fc.beforeEach(fn)] })

Remarks

Since 2.2.0