Skip to content

Conversation

@tanderson-ld
Copy link
Contributor

Adds running of FDv2 contract tests in addition to existing FDv1 contract tests.

@tanderson-ld tanderson-ld requested a review from a team as a code owner June 13, 2025 16:18
@github-actions
Copy link
Contributor

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

@github-actions
Copy link
Contributor

@launchdarkly/js-sdk-common size report
This is the brotli compressed size of the ESM build.
Compressed size: 25024 bytes
Compressed size limit: 26000
Uncompressed size: 122509 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: 17636 bytes
Compressed size limit: 20000
Uncompressed size: 90259 bytes

@github-actions
Copy link
Contributor

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

@tanderson-ld tanderson-ld force-pushed the ta/SDK-1318/run-fdv2-contract-tests-ci branch from a713696 to 2f4e25d Compare June 16, 2025 21:46
@tanderson-ld tanderson-ld requested review from abarker-launchdarkly and keelerm84 and removed request for a team and abarker-launchdarkly June 16, 2025 21:47

this._logger?.debug('Performing initialization request to LaunchDarkly for feature flag data.');
this._requestor.requestAllData((err, body) => {
this._requestor.requestAllData((err, body, headers) => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

For reviewers: Realized env id wasn't being piped through in the one shot initializer, so fixed that.

it('calls callback on success', () => {
requestor.requestAllData = jest.fn((cb) => cb(undefined, jsonData));
initializer.start(mockDataCallback, mockStatusCallback);
expect(mockDataCallback).toHaveBeenNthCalledWith(1, true, {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

For reviewers: Realized env id wasn't being piped through in the one shot initializer, so fixed that.

@kinyoklion
Copy link
Member

bugbot run

@tanderson-ld tanderson-ld merged commit 900511c into main Jun 18, 2025
28 checks passed
@tanderson-ld tanderson-ld deleted the ta/SDK-1318/run-fdv2-contract-tests-ci branch June 18, 2025 19:07
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.

3 participants