Function: installGlobalPlugin()
installGlobalPlugin(
plugin):void
Defined in: packages/fast-check/src/check/runner/configuration/GlobalPlugins.ts:22
Install a plugin to be used by all the runners
Installed plugins come before the ones passed via the plugins option of the run.
Parameters
| Parameter | Type | Description |
|---|---|---|
plugin | Plugin<unknown> | Plugin to be installed globally |
Returns
void
Example
fc.installGlobalPlugin(myPlugin());
//...
fc.assert(myProp, { plugins: [myOtherPlugin()] })
// equivalent to { plugins: [myPlugin(), myOtherPlugin()] }
Remarks
Since 4.10.0