Skip to content

chore: migrate core/paginator to Jest#8317

Draft
pearigee wants to merge 11 commits into
mainfrom
pearigee-migrate-core-paginator-to-jest
Draft

chore: migrate core/paginator to Jest#8317
pearigee wants to merge 11 commits into
mainfrom
pearigee-migrate-core-paginator-to-jest

Conversation

@pearigee
Copy link
Copy Markdown
Contributor

This is a prototype migrating the core/paginaor tests to Jest (significantly reducing the need for additional test dependencies).

@pearigee pearigee requested a review from a team as a code owner May 19, 2026 20:37
@pearigee pearigee marked this pull request as draft May 19, 2026 20:39
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request migrates the core/paginator package from Mocha, Sinon, and Istanbul to Jest. Changes include updating package.json dependencies, adding a jest.config.js, and refactoring test files to use Jest's mocking and assertion APIs. A new migration guide was also introduced. Reviewer feedback recommends adding clearMocks: true to the Jest configuration to prevent mock call history leakage and suggests using async/await with the .resolves matcher for more idiomatic asynchronous tests.

Comment thread core/paginator/jest.config.js
Comment thread core/paginator/test/index.ts Outdated
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.

1 participant