Skip to main content

Type Alias: GlobalAsyncPropertyHookFunction

GlobalAsyncPropertyHookFunction = (() => Promise<unknown>) | (() => void)

Defined in: packages/fast-check/src/check/runner/configuration/GlobalParameters.ts:20

Type of legal hook function that can be used in the global parameter asyncBeforeEach and/or asyncAfterEach Prefer beforeEach and/or afterEach plugins: fc.assert(property, { plugins: [fc.beforeEach(fn)] })

Remarks

Since 2.3.0