Skip to content

Scheduler - Fix TypeScript errors in appointment popup test mocks#33175

Open
aleksei-semikozov wants to merge 1 commit intoDevExpress:26_1from
aleksei-semikozov:fix/scheduler-test-types-26_1
Open

Scheduler - Fix TypeScript errors in appointment popup test mocks#33175
aleksei-semikozov wants to merge 1 commit intoDevExpress:26_1from
aleksei-semikozov:fix/scheduler-test-types-26_1

Conversation

@aleksei-semikozov
Copy link
Copy Markdown
Contributor

No description provided.

@aleksei-semikozov aleksei-semikozov force-pushed the fix/scheduler-test-types-26_1 branch from d3bfea2 to 6700c19 Compare April 6, 2026 14:39
@aleksei-semikozov aleksei-semikozov marked this pull request as ready for review April 6, 2026 15:03
@aleksei-semikozov aleksei-semikozov requested a review from a team as a code owner April 6, 2026 15:03
Copilot AI review requested due to automatic review settings April 6, 2026 15:03
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes TypeScript typing issues in Scheduler appointment popup tests by tightening the typings of Jest mocks used for the onSave callback and related test helpers.

Changes:

  • Typed addAppointment and onSave mocks in appointment_popup.test.ts to avoid implicit/incorrect inference.
  • Updated create_appointment_popup test helper types so onSave is consistently a promise-returning mock with a typed appointment parameter.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
packages/devextreme/js/__internal/scheduler/appointment_popup/appointment_popup.test.ts Adds explicit generic/parameter types to Jest mocks used in the composite onSave scenario.
packages/devextreme/js/__internal/scheduler/__tests__/__mock__/create_appointment_popup.ts Narrows onSave option/return callback typings and types the default jest.fn implementation to match AppointmentPopupConfig.onSave.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants