Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add CleanRestartPackager command tests - #2671

Merged
ConnorQi01 merged 2 commits into
masterfrom
dev/v-peq/add-clean-restart-packager-tests
May 29, 2026
Merged

Add CleanRestartPackager command tests#2671
ConnorQi01 merged 2 commits into
masterfrom
dev/v-peq/add-clean-restart-packager-tests

Conversation

@ConnorQi01

Copy link
Copy Markdown
Collaborator

Summary

Add unit coverage for the CleanRestartPackager command without changing command behavior.

Proposed Changes

  • Add tests for Windows and macOS/Linux Metro process cleanup branches.
  • Cover recursive Metro cache deletion and missing cache handling.
  • Cover tolerant paths for Watchman cleanup and Metro process lookup failures.
  • Verify the packager restart still runs with the configured port.

Test Plan

  • npm run build
  • npm test

Note: The full npm test run loaded the new cleanRestartPackagerCommand tests successfully, but unrelated existing host tests still timed out intermittently in experimentService/androidPlatform during local runs.

Closes #2663

@ConnorQi01

Copy link
Copy Markdown
Collaborator Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@ConnorQi01

Copy link
Copy Markdown
Collaborator Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@ConnorQi01
ConnorQi01 merged commit dbd4839 into master May 29, 2026
8 checks passed
@ConnorQi01 ConnorQi01 changed the title [Feature] Add CleanRestartPackager command tests Add CleanRestartPackager command tests Jun 3, 2026
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.

[Feature] Add unit tests for CleanRestartPackager command

3 participants