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
| Option | Purpose | Default |
|---|---|---|
output | Where files are written. | { path: 'cypress', barrel: { type: 'named' } } |
group | Split output by tag or path. | None |
baseURL | Base URL prepended to every request. | None |
include | Keep only operations that match. | None |
exclude | Skip operations that match. | [] |
override | Apply different options per pattern. | [] |
resolver | Customize generated names and file paths. resolverCypress adds no members of its own. | resolverCypress |
macros | Rewrite 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.
| Type | string |
| Required | false |
| Value | Helper URL | Resolved by |
|---|---|---|
| None (default) | `/pets/${path.petId}` | Cypress, against its own baseUrl |
'https://staging.petstore.dev' | `https://staging.petstore.dev/pets/${path.petId}` | The helper |
