Skip to content

Add PrebuildClean command unit test#2770

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

Add PrebuildClean command unit test#2770
ConnorQi01 wants to merge 1 commit into
masterfrom
dev/v-peq/prebuildClean_tests

Conversation

@ConnorQi01

Copy link
Copy Markdown
Collaborator

Summary

Add unit coverage for the Expo Prebuild Clean command.

Proposed Changes

  • Add a PrebuildClean command unit test mirroring the existing Prebuild command coverage.
  • Verify the command uses the Expo Prebuild Clean logger channel.
  • Verify the node modules root lookup and command executor invocation use the project root.
  • Verify the exact command string is
    px expo prebuild --clean.

Test Plan

pm run build

pm test (fails in existing
n-extension commandsRegistered test because the registered command list includes
eactNative.publishToExpHost; the new prebuildCleanCommand test passes.)

Closes #2755

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

1 participant