Files
zeekayandHanzo Dev 1493fae287 test(e2e): type the specs against the schema and types they run on
packages/app-tests has no typecheck script, and 10 errors had collected in
its specs. None changes what a spec sends or checks:

- Two API specs map over create-many's JSON, which Playwright types as any,
  so the callback's parameters were implicitly any. The responses are typed
  as TCreateEnvelopeRecipientsResponse, as the file already types its other
  responses.
- A PDF built with Buffer.from(Uint8Array) is a Buffer<ArrayBuffer>; its
  helpers said Buffer, which @types/node 26 reads as possibly shared memory,
  and a Blob takes no shared memory.
- The seed's updateDocumentOptions was typed as Prisma's unchecked update
  input, which has no relation fields, while the dictation specs upsert
  documentMeta through it — which Prisma takes as the checked input. It is
  typed as EnvelopeUpdateInput; every caller passes fields that input has.
- A spec typed a seeded document as Document, a model the schema replaced
  with Envelope.
- The alignment spec picked each field's type and fieldMeta apart, which
  loses which meta goes with which type; it drops the two keys the payload
  does not take and spreads the rest, and types the payload as the schema's
  input, which is what a client sends.

Co-authored-by: Hanzo Dev <[email protected]>
2026-09-19 04:57:58 -07:00
..
2025-06-10 11:49:52 +10:00