ts/e2e-tests/runtimes/node/esm-basic/README.md
Verifies that @composio/core works correctly when imported via import in ES Module environments.
ESM is the modern JavaScript module standard. This suite ensures:
import('@composio/core') resolves without errorsimport { Composio } from '@composio/core')| Test | Description |
|---|---|
| Dynamic import | import('@composio/core') doesn't throw |
| Composio class | Main class is exported and constructible |
| OpenAIProvider | Provider class exports and instantiation |
| AuthScheme | Auth enum is accessible |
| ComposioError | Error classes are exported |
| jsonSchemaToZodSchema | Utility function is exported |
| constants | Constants namespace is accessible |
| logger | Logger instance is exported |
| Named imports | Destructuring imports work correctly |
fixtures/
└── test.mjs # ESM test script using import()
The fixture is a standalone .mjs file that:
import('@composio/core') to dynamically import the package{ Composio, OpenAIProvider })OpenAIProvider to catch runtime errorsDocker with Node.js versions: 20.18.0, 20.19.0, 22.12.0.
pnpm test:e2e