Skip to content

[Feature] Add CleanRestartPackager command tests#2671

Open
ConnorQi01 wants to merge 1 commit into
masterfrom
dev/v-peq/add-clean-restart-packager-tests
Open

[Feature] Add CleanRestartPackager command tests#2671
ConnorQi01 wants to merge 1 commit 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

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

1 participant