ci(vue-sdk): add contract tests#1790
Open
joker23 wants to merge 1 commit into
Open
Conversation
Contributor
|
@launchdarkly/js-sdk-common size report |
Contributor
|
@launchdarkly/js-client-sdk-common size report |
Contributor
|
@launchdarkly/browser size report |
Contributor
|
@launchdarkly/js-client-sdk size report |
b376ba6 to
fcdf04a
Compare
fcdf04a to
ace72f4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SDK-2194
Adding fdv1 and fdv2 contract tests to vue sdk
Note
Low Risk
Changes are limited to CI and a private contract-test package; production Vue SDK code paths are exercised for compliance, not altered for app behavior.
Overview
Adds LaunchDarkly SDK contract-test coverage for the Vue client SDK by introducing a new
@launchdarkly/vue-contract-test-serviceworkspace and wiring it into the vue GitHub Actions workflow.The contract-test entity is a small Vite Vue app that connects to the harness adapter over WebSocket (
TestHarnessWebSocket), creates clients viacreateClient/client.start(), and implements harness commands (evaluations, identify/track/flush, flag-change listeners) inClientEntity, including mapping harness SDK config (endpoints, data system / connection modes, events, tags, hooks) onto client options.CI builds the SDK and entity, starts the adapter and static app (port 5173), opens the app in headless Playwright, then runs the shared contract-tests action for FDv1 and FDv2 (
version: v3), with skip lists for known gaps (streamingREPORTcases and tag-header edge cases). Rootpackage.jsonregisters the new workspace.Reviewed by Cursor Bugbot for commit ace72f4. Bugbot is set up for automated code reviews on this repo. Configure here.