@kubb/plugin-cypress
Version:
Cypress test generator plugin for Kubb, creating end-to-end tests from OpenAPI specifications for automated API testing.
20 lines (18 loc) • 454 B
text/typescript
/**
* Generated by Kubb (https://kubb.dev/).
* Do not edit manually.
*/
export function deletePet(
petId: DeletePetPathParams['petId'],
headers?: DeletePetHeaderParams,
options: Partial<Cypress.RequestOptions> = {},
): Cypress.Chainable<DeletePetMutationResponse> {
return cy
.request<DeletePetMutationResponse>({
method: 'delete',
url: `/pets/${petId}`,
headers,
...options,
})
.then((res) => res.body)
}