Skip to content

test: drop @hapi/teamwork by re-architecting tests around inject()'s return value#271

Merged
arb merged 1 commit into
masterfrom
drop-teamwork
May 4, 2026
Merged

test: drop @hapi/teamwork by re-architecting tests around inject()'s return value#271
arb merged 1 commit into
masterfrom
drop-teamwork

Conversation

@arb

@arb arb commented May 4, 2026

Copy link
Copy Markdown
Owner

Why:

  • Remove a devDependency (@hapi/teamwork).
  • Simplify the integration tests by getting rid of the deferred-bridge pattern -- now that inject() returns its response, tests no longer need a callback adapter.

Refs #257.

QA Spec

  • npm test passes on Node 20, 22, 24, 25
  • npx eslint . clean
  • c8 100% coverage gate still passes
  • @hapi/teamwork is gone from package.json

Made with Cursor

…return value

The deferred pattern was only there to bridge a callback-style inject()
back into await. Returning the response (and capturing post-celebrate
`req` via a closure where needed) removes the need for a callback at all.

Refs #257.

Co-authored-by: Cursor <cursoragent@cursor.com>
@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (a100702) to head (4f6310c).
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #271   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            5         5           
  Lines          263       263           
=========================================
  Hits           263       263           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@arb arb merged commit d1a75e6 into master May 4, 2026
9 checks passed
@arb arb deleted the drop-teamwork branch May 4, 2026 17:21
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