Local Dev & Testing
You can mock the Exnest AI API for local development and testing.
Mocking
Section titled “Mocking”Use your favorite testing library (Jest, Pytest) to mock the client responses.
Testing & Local Installation
Section titled “Testing & Local Installation”Quick notes to reproduce and verify the SDK locally, and to avoid runtime import errors when consuming the package from other projects.
Build and Test
Section titled “Build and Test”Run the TypeScript build (generates dist/):
npm run buildRun the bundled tests (this project uses Bun for unit tests):
# if you have Bun installedbun testNode runtime smoke test (included in the repo) — verifies dist/index.js can be required by Node:
node test/node-runtime.test.jsLocal Installation
Section titled “Local Installation”Install the SDK into another local project without publishing:
Using a tarball (recommended for quick verification):
# from the sdk-exnestai rootnpm pack# in the other project foldernpm install /path/to/@exnest-dev-ai-<version>.tgzUsing npm link for development across local projects:
# in sdk-exnestainpm link# in your consumer project (e.g. chat-html)npm link @exnest-dev/aiDevelopment Setup
Section titled “Development Setup”To set up the development environment:
# Clone the repositorygit clone https://github.com/fazza-abiyyu/exnest-ai-sdk-py.gitcd exnest-ai-sdk-py
# Install dependenciespip install -r requirements.txt
# Install for local developmentpip install -e .Running Tests
Section titled “Running Tests”To run tests:
pytest