Skip to content

Add e2e smoke test suite#3

Merged
SimplyLiz merged 2 commits intodevelopfrom
feature/e2e-smoke-test
Feb 25, 2026
Merged

Add e2e smoke test suite#3
SimplyLiz merged 2 commits intodevelopfrom
feature/e2e-smoke-test

Conversation

@SimplyLiz
Copy link
Owner

@SimplyLiz SimplyLiz commented Feb 25, 2026

Summary

  • Adds an end-to-end smoke test that installs the package as a real npm consumer and exercises every public export
  • Covers 26 scenarios: compress/uncompress round-trips, dedup, token budgets, async paths, tool_calls, re-compression, recursive uncompress, large conversations, and more
  • Catches issues unit tests can't: broken exports map, missing tarball files, ESM resolution failures

Test plan

  • cd e2e && npm install context-compression-engine && npm test passes against published package
  • npm run build && npm pack && cd e2e && npm install ../context-compression-engine-*.tgz && npm test passes against local build

Exercises every public export as a real npm consumer would — catches
broken exports maps, missing tarball files, and ESM resolution failures
that unit tests cannot detect. Covers 26 scenarios including compress,
uncompress round-trips, dedup, token budgets, async paths, tool_calls,
re-compression, recursive uncompress, and large conversations.
…d error paths

Replaces custom pass/fail harness with node:test + node:assert/strict.
Strengthens fuzzy dedup (asserts messages_fuzzy_deduped > 0) and
tool_calls (verifies non-tool messages are compressed). Adds 7 error
handling tests covering TypeError contracts and graceful null/empty
content. Merges develop to resolve conflicts.
@SimplyLiz SimplyLiz merged commit c3f1705 into develop Feb 25, 2026
8 checks passed
@SimplyLiz SimplyLiz deleted the feature/e2e-smoke-test branch February 25, 2026 11:16
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