Skip to content

feat(node): tests for Python-parity features#299

Merged
DorianZheng merged 2 commits intomainfrom
feat/node-sdk-parity-tests
Feb 25, 2026
Merged

feat(node): tests for Python-parity features#299
DorianZheng merged 2 commits intomainfrom
feat/node-sdk-parity-tests

Conversation

@DorianZheng
Copy link
Copy Markdown
Member

Summary

  • Add comprehensive unit + integration tests for all new Node.js SDK features added for Python parity
  • TS unit tests: SkillBox constructor defaults, OAuth handling, pre-start guards, constants validation (14 tests)
  • TS integration tests: Snapshot CRUD + restore, clone, export/import round-trip, workingDir, timeoutSecs, resizeTty, signal, metrics (21 tests)
  • Rust unit tests: From impls for snapshot/export/clone options, SnapshotInfo field mapping, BoxliteRestOptions conversion (7 tests)

Test plan

  • cargo test -p boxlite-node — 12/12 Rust tests pass
  • cargo fmt --all && cargo clippy -p boxlite-node --tests -- -D warnings — clean
  • npm test (unit) — 74/74 pass
  • npm run test:integration — requires VM (CI will validate)

Add snapshot, clone, export/import, REST backend, resizeTty, signal,
timeout/workingDir exec params, SimpleBox.metrics, and SkillBox to the
Node.js SDK. Include unit tests (Rust + TS) and integration tests for
all new functionality.
@DorianZheng DorianZheng force-pushed the feat/node-sdk-parity-tests branch from 6bf3684 to 5cbd18d Compare February 25, 2026 10:37
Move SkillBox constructor/guard tests to skillbox.integration.test.ts
since they trigger native module loading. Keep only constants tests in
skillbox.test.ts (pure TS imports, no native dependency).
@DorianZheng DorianZheng merged commit e787ed5 into main Feb 25, 2026
20 checks passed
@DorianZheng DorianZheng deleted the feat/node-sdk-parity-tests branch February 25, 2026 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant