Skip to content

ci(contract-test-utils): consolidating test websocket implementation#1193

Open
joker23 wants to merge 1 commit intomainfrom
skz/sdk-2010/contract-test-share
Open

ci(contract-test-utils): consolidating test websocket implementation#1193
joker23 wants to merge 1 commit intomainfrom
skz/sdk-2010/contract-test-share

Conversation

@joker23
Copy link
Contributor

@joker23 joker23 commented Mar 17, 2026

Note

Low Risk
Low risk because changes are confined to contract-test tooling and SDK contract-test entities, mainly refactoring to a shared implementation. Main risk is behavioral drift in websocket message handling/capabilities wiring that could break contract tests across environments.

Overview
Consolidates contract-test websocket handling into a shared TestHarnessWebSocket exported from @launchdarkly/js-contract-test-utils/client, making capabilities and client-entity creation injectable.

Browser and React Native contract-test entities are updated to use the shared implementation (browser via a thin subclass with fixed capabilities; React Native by passing capabilities, newSdkClientEntity, and the connection-state callback).

Written by Cursor Bugbot for commit 85c21bc. This will update automatically on new commits. Configure here.


Open with Devin

@github-actions
Copy link
Contributor

github-actions bot commented Mar 17, 2026

@launchdarkly/js-sdk-common size report
This is the brotli compressed size of the ESM build.
Compressed size: 25661 bytes
Compressed size limit: 29000
Uncompressed size: 126143 bytes

@github-actions
Copy link
Contributor

github-actions bot commented Mar 17, 2026

@launchdarkly/browser size report
This is the brotli compressed size of the ESM build.
Compressed size: 172978 bytes
Compressed size limit: 200000
Uncompressed size: 804043 bytes

@github-actions
Copy link
Contributor

github-actions bot commented Mar 17, 2026

@launchdarkly/js-client-sdk-common size report
This is the brotli compressed size of the ESM build.
Compressed size: 29156 bytes
Compressed size limit: 38000
Uncompressed size: 156220 bytes

@github-actions
Copy link
Contributor

github-actions bot commented Mar 18, 2026

@launchdarkly/js-client-sdk size report
This is the brotli compressed size of the ESM build.
Compressed size: 24981 bytes
Compressed size limit: 25000
Uncompressed size: 86916 bytes

@joker23 joker23 force-pushed the skz/sdk-2010/contract-test-share branch from 03c4541 to 47e104b Compare March 18, 2026 18:54
@joker23
Copy link
Contributor Author

joker23 commented Mar 18, 2026

@cursor review

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

@joker23 joker23 marked this pull request as ready for review March 18, 2026 20:48
@joker23 joker23 requested a review from a team as a code owner March 18, 2026 20:48
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 3 additional findings.

Open in Devin Review

@joker23 joker23 force-pushed the skz/sdk-2010/contract-test-share branch from 47e104b to 85c21bc Compare March 20, 2026 21:46
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