test(desktop): cover whitespace-only machine patches - #615
Open
ShawnSiao wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary / 摘要
历史故障机制已经复现:当前
js-yaml对 0 字节内容返回undefined,对仅空白和仅注释内容返回null,三者都不能通过旧逻辑的Array.isArray(parsed)检查;显式[]才能通过。生产解析器修复695ca61e6f已经把undefined和null转为空 patch list,v2.0.2 源码标签也包含该修复。本 PR 不重复修改生产解析器,只补齐 whitespace-only 回归边界。Related Issues / 关联 Issue
Related to #289. 本 PR 不关闭 #289,因为尚未执行 v2.0.2 Windows 安装包启动复测。
Type / 类型
Platforms / 影响平台
Verification / 验证
corepack yarn check:layoutcorepack yarn typecheckcorepack yarn testcorepack yarn check实际执行命令:
执行结果:
模板中的根
typecheck、根test、根check、平台 package smoke 和人工安装包复测均未作为本 PR 的通过证据。Release Notes / 发布说明
N/A。仅增加测试覆盖,没有新的生产修复、迁移要求或发布资产。