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 |
e1b006e to
206d682
Compare
5b56bba to
6730462
Compare
f723df4 to
43b8913
Compare
PR was getting too big
43b8913 to
da28c5c
Compare
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.