ts/e2e-tests/runtimes/node/file-roundtrip/README.md
Verifies that @composio/core can upload a file and download it back without corruption.
This suite is meant to catch regressions where file content is altered during upload (for example, sending base64 text instead of raw bytes).
It performs a real round-trip:
| Test | Description |
|---|---|
| Upload | Uploads a deterministic binary payload via composio.files.upload() |
| Download | Downloads the uploaded object back from storage |
| Integrity | Compares byte length and SHA-256 checksum |
This suite requires a real API key.
COMPOSIO_API_KEY (required) – Composio API keyCOMPOSIO_BASE_URL (optional) – override backend base URLIf COMPOSIO_API_KEY is not set, the suite is skipped.
Docker with Node.js versions: current (as specified in .nvmrc).
This ensures the behavior is tested against specific Node.js versions independent of the developer's local setup.
pnpm test:e2e