Select preset

Makes sure that @ng-apimock/core preset is loaded.

Usage

selectPreset(name);

Parameters

NameTypeDetails
namestringname of the preset

Example

selectPreset('happy-flow');

Executing this will select preset happy-flow. All the

  • mocks will be updated with the specified scenario's, delays and echo indicators.
  • variables will be added / updated