UNPKG

@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) 453 B
/** * Generated by Kubb (https://kubb.dev/). * Do not edit manually. */ export function updatePet( petId: UpdatePetPathParams['petId'], data: UpdatePetMutationRequest, options: Partial<Cypress.RequestOptions> = {}, ): Cypress.Chainable<UpdatePetMutationResponse> { return cy .request<UpdatePetMutationResponse>({ method: 'put', url: `/pets/${petId}`, body: data, ...options, }) .then((res) => res.body) }