Skip to content

Conversation

kmruiz
Copy link
Collaborator

@kmruiz kmruiz commented Sep 4, 2025

Proposed changes

Checklist

@Copilot Copilot AI review requested due to automatic review settings September 4, 2025 11:28
@kmruiz kmruiz requested a review from a team as a code owner September 4, 2025 11:28
@kmruiz kmruiz added the no-title-validation Add this label to disable the title check for this PR. label Sep 4, 2025
Copy link
Contributor

@Copilot 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 test flakiness in the ExportsManager unit tests by introducing proper asynchronous waiting for exports to become available. The changes replace synchronous access to manager.availableExports with an async helper function that waits until at least one export is available.

Key changes:

  • Added a helper function to wait for exports to be available before proceeding with assertions
  • Exported the AvailableExport type to support the new test helper
  • Updated three test cases to use asynchronous waiting instead of immediate access

Reviewed Changes

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

File Description
tests/unit/common/exportsManager.test.ts Added async wait helper and updated test cases to wait for exports
src/common/exportsManager.ts Exported AvailableExport type for use in tests

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@coveralls
Copy link
Collaborator

Pull Request Test Coverage Report for Build 17462396965

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.002%) to 81.166%

Totals Coverage Status
Change from base Build 17461332296: 0.002%
Covered Lines: 4660
Relevant Lines: 5654

💛 - Coveralls

Copy link
Collaborator

@himanshusinghs himanshusinghs left a comment

Choose a reason for hiding this comment

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

Nice <3

@kmruiz kmruiz merged commit dd05b48 into main Sep 4, 2025
21 checks passed
@kmruiz kmruiz deleted the fix/export-test-flakiness branch September 4, 2025 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-title-validation Add this label to disable the title check for this PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants