Skip to content

Add RestartPackager command unit tests#2795

Open
ConnorQi01 wants to merge 1 commit into
masterfrom
dev/v-peq/restartPackager_tests
Open

Add RestartPackager command unit tests#2795
ConnorQi01 wants to merge 1 commit into
masterfrom
dev/v-peq/restartPackager_tests

Conversation

@ConnorQi01

Copy link
Copy Markdown
Collaborator

Summary

Add unit coverage for the RestartPackager command.

Proposed Changes

  • Cover the successful restart flow after the React Native package version check resolves.
  • Cover the failure path where the version check rejects and the packager is not restarted.
  • Verify the configured packager port is requested with the project path and forwarded to restart.

Test Plan

  • npx prettier --check test\extension\commands\restartPackager.test.ts
  • npm run build
  • npm test - fails in existing tests: rn-extension commandsRegistered command list assertion, and logCat/android asynchronous channel failure. restartPackagerCommand ran 3 tests with 0 failures.

Closes #2773

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

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 RestartPackager command

1 participant