import { describe, expect, it } from 'vitest' import { billingListQuerySchema } from './billing.schemas' describe('billing.schemas billingListQuerySchema', () => { it('parses explicit outstandingOnly query strings as booleans', () => { expect(billingListQuerySchema.parse({ outstandingOnly: 'false' }).outstandingOnly).toBe(false) expect(billingListQuerySchema.parse({ outstandingOnly: 'true' }).outstandingOnly).toBe(true) }) it('defaults outstandingOnly to false', () => { expect(billingListQuerySchema.parse({}).outstandingOnly).toBe(false) }) })