Skip to content

Conversation

@steve-henry
Copy link
Contributor

Why?

The v7.0.0 release failed to publish to npm because the pagination test for conversations was failing in CI.

The test was relying on pre-existing conversations in the test account, but when the default Intercom API version was upgraded from 2.11 to 2.14 in v7.0.0, API v2.14 returns fewer conversations (only 1 instead of the expected 2+). This caused the assertion expect(pagerCount).toBeGreaterThan(1) to fail.

This needs to be fixed so we can successfully publish v7.0.0 to npm.

How?

Added a setup function to the conversations pagination test case that creates its own test data:

  • Creates a test contact
  • Creates 2 test conversations using that contact
  • Returns an empty object for the test parameters

This makes the test self-contained and reliable regardless of the API version or existing data in the test account, matching the pattern already used by the "notes" pagination test case.

The conversations pagination test was failing because it relied on
pre-existing conversations in the test account. When the default
Intercom API version was bumped from 2.11 to 2.14 in v7.0.0, the API
returned fewer conversations, causing the test to fail.

This fix adds a setup function that creates 2 test conversations
before running the pagination test, making the test reliable
regardless of the API version or existing data in the test account.

Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
@steve-henry steve-henry merged commit 841fc49 into master Jan 13, 2026
5 checks passed
@steve-henry steve-henry deleted the fix-pagination-test branch January 13, 2026 17:39
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