Files
paper-burner-x/.github/workflows
wing b31088959e test: 新增 22 个自动化测试文件,覆盖率达 726 tests
新增测试文件:
- tests/api/model-detector.test.js (16 tests)
- tests/processing/content-list-to-chunks.test.js (15 tests)
- tests/processing/markdown-text-fix.test.js (8 tests)
- tests/processing/formula-post-processor.test.js
- tests/processing/reference-detector.test.js
- tests/utils/performance-helpers.test.js (15 tests)
- tests/ui/components.test.js (11 tests)
- tests/chatbot/*.test.js (json-parser, katex-cache, token-budget, tool-registry, segmentation)
- tests/core/*.test.js (semaphore, process-queue, key-provider)
- tests/shared/*.test.js (escape-html, uuid, logger)
- tests/ppt/*.test.js (state-store, event-bus, workflow-states, dsl, math-converter, health-check)
- tests/storage/storage-facade.test.js
- tests/annotations/coordinate-mapper.test.js
- tests/history/exporter.test.js

源码修改 (暴露纯函数供测试):
- js/api/model-detector.js: 导出 URL 规范化函数
- js/processing/content-list-to-chunks.js: 暴露内部分块函数
- js/processing/markdown_text_fix.js: 修复空格逻辑,暴露 escapeHtml
- js/utils/performance-helpers.js: 修复 throttle leading:false

清理:
- 移动手动测试到 tests/manual/
- 删除过时文件 (admin, docker, login, deepsearch_forge)
- 删除冗余文档 (tests/*.md)

vitest.config.js: 添加 api/utils/ui/processing 测试目录
2026-01-10 15:49:40 +08:00
..