Create preset
Makes sure that @ng-apimock/core a new preset will be created.
Usage
createPreset(name, includeMocks, includeVariables);
Parameters
Name | Type | Details |
---|---|---|
name | string | name of the preset |
includeMocks | boolean | include current mock state |
includeVariables | boolean | include current variables |
Example
createPreset('awesome-flow', true, true);
Executing this will create a preset awesome-flow
.
When including mocks, the current state of the mocks will be used in the preset.
When including variables, the current variables will be used in the preset.
You need to at least include mocks or variables, otherwise the preset will not be created.