ci(contract-test-utils): consolidating test websocket implementation#1193
ci(contract-test-utils): consolidating test websocket implementation#1193
Conversation
|
@launchdarkly/js-sdk-common size report |
|
@launchdarkly/browser size report |
|
@launchdarkly/js-client-sdk-common size report |
|
@launchdarkly/js-client-sdk size report |
03c4541 to
47e104b
Compare
|
@cursor review |
47e104b to
85c21bc
Compare
|
moving this back to draft because the test adapter consolidation is more impactful and would likely change what we are doing here |
85c21bc to
2aa8dc5
Compare
e1b006e to
206d682
Compare
5b56bba to
6730462
Compare
PR was getting too big
Note
Medium Risk
Moderate risk because it refactors shared contract-test infrastructure (WebSocket command routing and SDK config construction) used by multiple entity implementations, so regressions could break test harness interactions across platforms.
Overview
Consolidates client-side contract test entity plumbing into
@launchdarkly/js-contract-test-utilsby adding sharedTestHarnessWebSocketBuilder,ClientEntity,doCommanddispatch, and a reusableConfigBuilderfor translating harness config into SDK options.Updates the browser, React, and React Native contract-test entities to use the shared builder/entity/config utilities, removing their bespoke WebSocket servers and per-SDK command/config duplication while preserving existing capability declarations and initialization semantics (timeouts/initCanFail).
Written by Cursor Bugbot for commit 6e46f7f. This will update automatically on new commits. Configure here.