Global configuration
globalConfig()
Global configuration.
- type
function globalConfig(config: AlovaGlobalConfig): void;
- Parameters
- config: configuration
Parameter name | Type | Description |
---|---|---|
limitSnapshots | number | method snapshot number limit, set to 0 to disable saving snapshots. After closing, the method snapshot matcher will be unavailable |
- return
none
- Example
import { globalConfig } from 'alova';
globalConfig({
limitSnapshots: 10
});