e0e362d700
SDK Tests / SDK CI (push) Blocked by required conditions
SDK Tests / changes (push) Successful in 2m29s
Real E2E Tests / changes (push) Successful in 2m29s
SDK Tests / Python SDK Tests (sandbox) (push) Waiting to run
SDK Tests / CLI Quality (push) Waiting to run
SDK Tests / CLI Tests (push) Waiting to run
SDK Tests / Python SDK Quality (code-interpreter) (push) Waiting to run
SDK Tests / Python SDK Quality (sandbox) (push) Waiting to run
SDK Tests / Python SDK Tests (code-interpreter) (push) Waiting to run
SDK Tests / JavaScript SDK Quality And Tests (code-interpreter) (push) Waiting to run
SDK Tests / JavaScript SDK Quality And Tests (sandbox) (push) Waiting to run
SDK Tests / Kotlin SDK Quality And Tests (sandbox) (push) Waiting to run
SDK Tests / Kotlin SDK Quality And Tests (code-interpreter) (push) Waiting to run
SDK Tests / C# SDK Quality And Tests (code-interpreter) (push) Waiting to run
SDK Tests / C# SDK Quality And Tests (sandbox) (push) Waiting to run
SDK Tests / Go SDK Quality And Tests (push) Waiting to run
Deploy Docs Pages / build (push) Has been cancelled
Deploy Docs Pages / deploy (push) Has been cancelled
Real E2E Tests / JavaScript E2E (docker bridge) (push) Has been cancelled
Real E2E Tests / Python E2E (docker bridge) (push) Has been cancelled
Real E2E Tests / Java E2E (docker bridge) (push) Has been cancelled
Real E2E Tests / C# E2E (docker bridge) (push) Has been cancelled
Real E2E Tests / Go E2E (docker bridge) (push) Has been cancelled
Real E2E Tests / Real E2E CI (push) Has been cancelled
41 lines
955 B
Markdown
41 lines
955 B
Markdown
# OpenSandbox JavaScript E2E Tests
|
|
|
|
This folder contains strict E2E tests for the JavaScript/TypeScript SDKs, aligned with `OpenSandbox/tests/python` and `OpenSandbox/tests/java`.
|
|
|
|
## Prerequisites
|
|
|
|
- Node.js (via nvm): **>= 20**
|
|
- pnpm (via corepack or global install)
|
|
- OpenSandbox server running
|
|
|
|
## Environment variables
|
|
|
|
These tests follow the same naming as Python tests:
|
|
|
|
- `OPENSANDBOX_TEST_DOMAIN` (default: `localhost:8080`)
|
|
- `OPENSANDBOX_TEST_PROTOCOL` (default: `http`)
|
|
- `OPENSANDBOX_TEST_API_KEY` (default: `e2e-test`)
|
|
- `OPENSANDBOX_SANDBOX_DEFAULT_IMAGE` (default: code-interpreter image)
|
|
|
|
## Run
|
|
|
|
```bash
|
|
cd OpenSandbox/tests/javascript
|
|
|
|
# Node >= 20 is required (SDK engines: node >= 20)
|
|
source ~/.nvm/nvm.sh
|
|
nvm use 22
|
|
|
|
# Ensure pnpm is available (repo pins pnpm@9.x)
|
|
corepack enable
|
|
corepack prepare pnpm@9.15.0 --activate
|
|
|
|
# Install test dependencies (vitest, typescript)
|
|
pnpm install
|
|
|
|
# Run tests (also builds SDKs)
|
|
pnpm test
|
|
```
|
|
|
|
|