Skip to content

[Feature] Expand command palette smoke coverage for recently added commands #2641

@ConnorQi01

Description

@ConnorQi01

Summary

The current commands.test.ts smoke suite only verifies that "Start Packager" is visible in the command palette. Several commands added or refactored in recent releases have no smoke-level visibility check: cleanRestartPackager, installPods, runEasBuild, expoDoctor, expoPrebuild, and expoPrebuildClean.

Why this is useful

Command palette visibility is the primary entry point for most users. A regression that hides or renames a command would go undetected until a user reports it. Expanding coverage to recently touched commands closes that gap with minimal test complexity.

Suggested scope

  • Add visibility assertions in commands.test.ts for the commands listed above, following the existing pattern
  • Keep each assertion as a separate it block or extend the parameterized loop already used in networkInspector.test.ts
  • No new helper infrastructure needed

Evidence

  • test/smoke/suites/commands.test.ts currently has a single test for "React Native: Start Packager"
  • cleanRestartPackager, installPods, runEasBuild, expoDoctor, expoPrebuild, expoPrebuildClean were all added or refactored in commits since 2026-03-01 (see src/extension/commands/)
  • networkInspector.test.ts (added in PR Add Network Inspector smoke suite and refactor dispose logic #2624) demonstrates the loop pattern that can be reused

Validation

  • Run the smoke suite and confirm all new assertions pass
  • Rename one command title in package.json temporarily to confirm the test catches the regression

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions