Skip to content

Main branch merge conflict resolution#4

Merged
wszxdhr merged 4 commits intofeat/make-real-pdfjs-dist-to-unit-testfrom
cursor/main-branch-merge-conflict-resolution-715e
Jan 5, 2026
Merged

Main branch merge conflict resolution#4
wszxdhr merged 4 commits intofeat/make-real-pdfjs-dist-to-unit-testfrom
cursor/main-branch-merge-conflict-resolution-715e

Conversation

@wszxdhr
Copy link
Copy Markdown
Contributor

@wszxdhr wszxdhr commented Jan 5, 2026

Resolve merge conflicts with the main branch, integrating updated dependencies, build configurations, and expanded test suites.


Open in Cursor Open in Web

wszxdhr and others added 3 commits December 20, 2025 18:14
feat: 修正 PdfParser 文本坐标映射
- 新增 Jest 测试框架及相关依赖(@jest/globals, @types/jest, jest, ts-jest)
- 添加 jest.config.js 配置文件
- 新增测试脚本: test, test:watch, test:coverage
- 大幅扩展测试覆盖范围:
  - mapTextContentToIntermediate.test.ts: 从1个测试扩展到多个测试套件,覆盖坐标转换、内容处理、ID生成、文本方向映射、样式处理、EOL处理、无效项过滤等场景
  - 新增 asTextItem.test.ts: 测试文本项转换功能
  - 新增 collectMetrics.test.ts: 测试指标收集功能
  - 新增 mapTextDir.test.ts: 测试文本方向映射
  - 新增 outline-mapping.test.ts: 测试大纲映射功能
  - 新增 transformToViewport.test.ts: 测试视口转换功能
- 在 src/index.ts 中添加 encode 方法的接口声明(当前抛出未实现错误)
- 升级依赖版本: @hamster-note/document-parser 和 @hamster-note/types 从 ^0.1.0 升级到 ^0.2.0
- 新增测试 mock 文件: @hamster-note/document-parser.ts 和 @hamster-note/types.ts
- 添加 CHANGELOG.md 记录版本变更
- 版本号升级: 0.1.0 → 0.2.0

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit updates project dependencies to their latest versions and introduces comprehensive Jest tests for various parsing and mapping functionalities. It also includes mock implementations for external types and parsers to facilitate testing.

Co-authored-by: wszxdhr <wszxdhr@126.com>
@cursor
Copy link
Copy Markdown

cursor bot commented Jan 5, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Jan 5, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Co-authored-by: wszxdhr <wszxdhr@126.com>
@wszxdhr wszxdhr marked this pull request as ready for review January 5, 2026 03:52
@wszxdhr wszxdhr merged commit 3d6aa1d into feat/make-real-pdfjs-dist-to-unit-test Jan 5, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants