Skip to content

Conversation

@mocca102
Copy link
Contributor

@mocca102 mocca102 commented Jun 14, 2024

Adding tests to cover these scenarios

When passed

  • API key
  • ConstructorIO Client
  • CIOClientOptions
  • Custom placeholder
  • Custom styles
  • Fully featured example
Screenshot 2024-06-14 at 6 43 04 PM

@mocca102 mocca102 requested a review from a team June 14, 2024 15:48
Copy link
Contributor

@VincentGalloro VincentGalloro left a comment

Choose a reason for hiding this comment

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

LGTM

jest.resetAllMocks();
});

it.only("Throws an error even if we provide a ConstructorIO Client since it's not SSR supported", () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Only

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

@esezen esezen left a comment

Choose a reason for hiding this comment

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

One test seems to be failing but I believe we have a story for that, right? The test itself seems fine, the implementation needs to be updated

@mocca102
Copy link
Contributor Author

mocca102 commented Jul 1, 2024

One test seems to be failing but I believe we have a story for that, right? The test itself seems fine, the implementation needs to be updated

The tests needed to be updated on this PR. Please review the updated tests @esezen

Copy link
Contributor

@esezen esezen left a comment

Choose a reason for hiding this comment

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

LGTM! You might want to rebase or merge the other branch into this since you made some changes to the other one

Base automatically changed from ci-3559-os-ui-autocomplete-setup-jest-testing-environment to main July 3, 2024 13:54
@mocca102 mocca102 merged commit efdf23a into main Jul 22, 2024
@mocca102 mocca102 deleted the ci-3197-os-ui-autocomplete-component-indexstoriestsx-add-client-side branch July 22, 2024 08:03
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.

4 participants