bcabd17220
Build & Push / Pipeline Tests (push) Failing after 1m6s
Build & Push / Build & Push Docker Image (push) Has been skipped
Test / Type Check (all packages) (push) Failing after 56s
Test / API Unit Tests (push) Has been skipped
Test / Homepage Unit Tests (push) Has been skipped
Test / Carplace Unit Tests (push) Has been skipped
Test / Admin Unit Tests (push) Has been skipped
Test / Dashboard Unit Tests (push) Has been skipped
Test / API Integration Tests (push) Has been skipped
13 lines
939 B
TypeScript
13 lines
939 B
TypeScript
import { describe, expect, it } from 'vitest'
|
|
import { companySignupSchema } from '../../modules/auth/auth.company.schemas'
|
|
import { createSchema as reservationCreateSchema } from '../../modules/reservations/reservation.schemas'
|
|
import { checkoutSchema as subscriptionCheckoutSchema } from '../../modules/subscriptions/subscription.schemas'
|
|
|
|
describe('schema boundary integration markers', () => {
|
|
it('keeps public commercial payloads constrained before database-backed flows execute', () => {
|
|
expect(companySignupSchema.safeParse({}).success).toBe(false)
|
|
expect(reservationCreateSchema.safeParse({ vehicleId: 'bad', customerId: 'bad', startDate: 'bad', endDate: 'bad' }).success).toBe(false)
|
|
expect(subscriptionCheckoutSchema.safeParse({ plan: 'PRO', billingPeriod: 'MONTHLY', currency: 'MAD', provider: 'STRIPE', successUrl: 'https://ok.example.test', failureUrl: 'https://fail.example.test' }).success).toBe(true)
|
|
})
|
|
})
|