Skip to content
Cypress logo

Cypress

Officialv5.3.6

@kubb/plugin-cypress

kubb add plugin-cypress

Options

Pass these options to pluginCypress(). Shared options link to Shared plugin options, and this page gives only their default here.

Options overview

OptionPurposeDefault
outputWhere files are written.{ path: 'cypress', barrel: { type: 'named' } }
groupSplit output by tag or path.None
baseURLBase URL prepended to every request.None
includeKeep only operations that match.None
excludeSkip operations that match.[]
overrideApply different options per pattern.[]
resolverCustomize generated names and file paths. resolverCypress adds no members of its own.resolverCypress
macrosRewrite AST nodes before printing.[]

Option details

baseURL

Base URL that Kubb writes into each helper's request URL, so no runtime setup is needed. The adapter's server URL is not used.

Typestring
Requiredfalse
ValueHelper URLResolved by
None (default)`/pets/${path.petId}`Cypress, against its own baseUrl
'https://staging.petstore.dev'`https://staging.petstore.dev/pets/${path.petId}`The helper