Skip to content

Conversation

@juleari
Copy link
Contributor

@juleari juleari commented Oct 23, 2025

No description provided.

@juleari juleari self-assigned this Oct 23, 2025
Copilot AI review requested due to automatic review settings October 23, 2025 13:07
@juleari juleari requested review from a team as code owners October 23, 2025 13:07
@juleari juleari requested a review from a team as a code owner October 23, 2025 13:07
@juleari juleari added the 25_2 label Oct 23, 2025
Copy link
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 synchronizes the setup and teardown of executeAsyncMock across QUnit test files to ensure proper test isolation. The changes move mock lifecycle management from global scope into individual test module hooks (beforeEach/afterEach), preventing potential test interference.

Key Changes:

  • Removed global executeAsyncMock.setup() calls that were executing once per file
  • Added executeAsyncMock.setup() to beforeEach hooks and executeAsyncMock.teardown() to afterEach hooks in multiple test modules
  • Fixed a case in collectionWidget.tests.js where teardown was in the wrong location

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
packages/devextreme/testing/tests/DevExpress.ui/collectionWidget.tests.js Moved executeAsyncMock.teardown() from module-level afterEach to individual test where mock is actually used
packages/devextreme/testing/tests/DevExpress.ui.widgets/popup.tests.js Removed global setup call and added setup/teardown pairs to multiple test modules' beforeEach/afterEach hooks
packages/devextreme/testing/tests/DevExpress.ui.widgets/popup.materialTheme.tests.js Removed global setup call and added setup/teardown pair to module hooks
packages/devextreme/testing/tests/DevExpress.ui.widgets/gallery.tests.js Moved teardown from module afterEach to individual test
packages/devextreme/testing/tests/DevExpress.ui.widgets.dataGrid/columnsController.tests.js Added teardownModule call to afterEach hook
packages/devextreme/testing/tests/DevExpress.knockout/collectionWidget.tests.js Added executeAsyncMock.setup() to beforeEach hook
packages/devextreme/testing/tests/Bootstrap Integration/widget_bundled.tests.js Removed global setup call

@juleari juleari changed the title QUnit: syncronized executeAsyncMock setups and terminates QUnit: synchronized executeAsyncMock setups and terminates Oct 23, 2025
Copilot AI review requested due to automatic review settings October 23, 2025 14:16
Copy link
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

Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.

@juleari juleari marked this pull request as draft October 23, 2025 14:22
@juleari juleari added the WIP Work in progress label Oct 23, 2025
@juleari juleari marked this pull request as ready for review October 27, 2025 13:32
@juleari juleari requested a review from a team as a code owner October 27, 2025 13:32
Copilot AI review requested due to automatic review settings October 27, 2025 13:32
@juleari juleari removed the WIP Work in progress label Oct 27, 2025
Copy link
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

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

@juleari juleari merged commit 849f0fa into DevExpress:25_2 Oct 30, 2025
141 of 142 checks passed
juleari added a commit to juleari/DevExtreme that referenced this pull request Oct 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants