-
Notifications
You must be signed in to change notification settings - Fork 31
chore: adds FDv2 contract tests to CI #884
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@launchdarkly/browser size report |
|
@launchdarkly/js-sdk-common size report |
|
@launchdarkly/js-client-sdk-common size report |
|
@launchdarkly/js-client-sdk size report |
a713696 to
2f4e25d
Compare
|
|
||
| this._logger?.debug('Performing initialization request to LaunchDarkly for feature flag data.'); | ||
| this._requestor.requestAllData((err, body) => { | ||
| this._requestor.requestAllData((err, body, headers) => { |
There was a problem hiding this comment.
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, { |
There was a problem hiding this comment.
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.
|
bugbot run |
Adds running of FDv2 contract tests in addition to existing FDv1 contract tests.