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
});
Is using alova in your project? please tell me!