fix: 同步 FAQ 扩充后的测试断言 (跟随 PR #151) - #152
Merged
Merged
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.
背景
PR #151 (
feat:update-faq-bigdata) 将 FAQ 知识库从 108 条扩充到 257 条,但未同步更新测试断言,导致「前端测试与构建」Action 失败(6 个测试)。修复内容
qa-matcher.test.ts:精确匹配用例改用数据中真实存在的问题(请问南航校园网怎么登知网并免费下载论文?)FreshmanWindow.test.tsx:条数断言不再写死108(改为/新生问答\d+/,对未来的数据扩充更健壮);知网相关断言同步到新数据验证
本地
vitest run两个测试文件全部通过(27/27)。