Skip to main content
Version: v2

Global configuration

globalConfig()

Global configuration.

  • type
function globalConfig(config: AlovaGlobalConfig): void;
  • Parameters
  1. config: configuration
Parameter nameTypeDescription
limitSnapshotsnumbermethod 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
});