UNPKG

cypress-bootstrap

Version:

Cypress Bootstrap is a project scaffolding tool that sets up a Cypress automation framework with a standardized folder structure and Page Object Model (POM) design. It helps teams quickly start testing with built-in best practices and sample specs.

20 lines (18 loc) 500 B
export namespace SubscriptionRequests { export interface CreateSubscriptionRequest { productId: string; customerId: string; startDate: string | null; } export class Request { public createSubscriptionRequest( subscriptionObject: CreateSubscriptionRequest ): CreateSubscriptionRequest { return { productId: subscriptionObject.productId, customerId: subscriptionObject.customerId, startDate: new Date().toISOString(), }; } } }