[Feature] Refactor Launch Expo Web command and improve test coverage

未关闭 适合新手
#3,036 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
67/100
Issue 类型
重构
描述清晰度
基本清楚
活跃度
活跃
技术栈
react-native, typescript, vscode

调研方向

在扩展中找到 Launch Expo Web 命令及其测试,然后阅读命令实现和现有的测试设置。检查环境检查、准备、packager 启动和共享错误处理程序之间的连接方式。删除未使用的参数,改进返回类型,并删除无操作语句;添加关于执行顺序、错误传播以及较早步骤失败后停止的测试。所要求的测试覆盖通过且启动行为保持不变时,即为完成。

由索引模型根据 Issue 内容生成。

描述

enhancement

Description

The Launch Expo Web command can be simplified without changing its behavior:

Remove the unused launchArgs parameter.
Replace Promise with Promise and explicitly type the helper’s return value.
Remove the no-op platform; statement.
Improve test coverage to verify that:

The packager starts only after environment preparation completes.
Errors from environment checks, environment preparation, and packager startup propagate to the shared error handler.
Failures during earlier stages prevent subsequent startup steps.

Expected outcome

Clearer types and stronger regression coverage, with no changes to the existing startup flow or user experience.

主要语言
TypeScript
星标
2.7k
派生
303
平均合并
19 小时 16 分钟
30 天内合并 PR
29

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

microsoft/vscode-react-native 的其他 Issue

查看 microsoft/vscode-react-native 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。