Skip to content

Add async API coverage to Bun compatibility tests#139

Merged
jgowdy-godaddy merged 1 commit intomainfrom
bun-async-tests
Mar 4, 2026
Merged

Add async API coverage to Bun compatibility tests#139
jgowdy-godaddy merged 1 commit intomainfrom
bun-async-tests

Conversation

@jgowdy-godaddy
Copy link
Copy Markdown
Collaborator

Summary

  • Add async encrypt/decrypt tests (encrypt_async, decrypt_async, encrypt_string_async, decrypt_string_async)
  • Add sync string API tests (encrypt_string, decrypt_string)
  • Add setup_async and shutdown_async tests
  • Add cross sync/async round-trip tests (sync encrypt -> async decrypt and vice versa)
  • Convert test runner to async to support await-based tests

Previously only sync encrypt/decrypt/setup/shutdown were tested. Now covers 17 tests across all API variants.

Test plan

  • npx mocha — all 44 existing tests pass (no regressions)
  • Lint clean (only pre-existing require() warning)
  • Run bun test/bun-test.js on a Bun-equipped environment

The Bun test only exercised sync encrypt/decrypt. Add tests for
encrypt_async, decrypt_async, encrypt_string, decrypt_string,
encrypt_string_async, decrypt_string_async, setup_async, and
shutdown_async. Also add cross sync/async round-trip tests.
@jgowdy-godaddy jgowdy-godaddy merged commit 9dc4e4e into main Mar 4, 2026
2 checks passed
@jgowdy-godaddy jgowdy-godaddy deleted the bun-async-tests branch March 4, 2026 19:28
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.

2 participants