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

Medium Risk
Moderate risk because it centralizes WebSocket command handling and changes the TestHarnessWebSocket constructor/API used by contract-test entities, which could break harness connectivity or capability reporting if mismatched.

Overview
Consolidates the contract-test WebSocket harness into @launchdarkly/js-contract-test-utils/client so entities no longer maintain their own per-SDK implementations.

TestHarnessWebSocket is updated to accept injected capabilities and a createClient factory (IClientEntity/CreateClientEntityFn), and is now exported from client.ts; the browser entity becomes a thin subclass and the React Native entity switches to the shared implementation while providing its platform-specific capability list.

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


Open with Devin

@github-actions
Copy link
Contributor

@launchdarkly/js-sdk-common size report
This is the brotli compressed size of the ESM build.
Compressed size: 25566 bytes
Compressed size limit: 26000
Uncompressed size: 125383 bytes

@github-actions
Copy link
Contributor

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

@github-actions
Copy link
Contributor

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

@github-actions
Copy link
Contributor

@launchdarkly/js-client-sdk size report
This is the brotli compressed size of the ESM build.
Compressed size: 24539 bytes
Compressed size limit: 25000
Uncompressed size: 85098 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

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