8000 build(deps): bump jest to 30 and keep BlockSuite on 0.19 by adeelahmad · Pull Request #241 · adeelahmad/lense · GitHub
[go: up one dir, main page]

Skip to content

build(deps): bump jest to 30 and keep BlockSuite on 0.19 - #241

Merged
adeelahmad merged 2 commits into
mainfrom
claude/project-thread-od4r1g
Oct 9, 2026
Merged

adeelahmad merged 2 commits into
mainfrom
claude/project-thread-od4r1g

Conversation

@adeelahmad
@adeelahmad adeelahmad commented Oct 9, 2026 •
Copy link
Copy Markdown
Owner

Requested by Adeel · project thread

Description

Before: two Dependabot PRs were red.

After: the tests run on Jest 30 and jest-environment-jsdom 30, and Dependabot stops proposing BlockSuite updates. Nothing changes for users.

How:

  • Jest 30: the two external sign-in components now leave the page through a new lib/navigate.ts (navigate.assign and navigate.replace), and the tests mock it. The tests set the URL fragment with history.replaceState instead of a fake location.
  • BlockSuite: after 0.19 it can't be used outside AFFiNE's own repo. At 0.22.4, all 86 @blocksuite/* packages point their exports at raw src/*.ts, and the editor presets (AffineEditorContainer, DocCollection, Job) are gone. @blocksuite/blocks and @blocksuite/presets stop at 0.19.5. So .github/dependabot.yml now ignores @blocksuite/*, and the notes editor stays on 0.19.5.

Supersedes #215 and #237.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • The title is a Conventional Commit.
  • Checked locally: tsc and eslint clean, jest 724/724.

🤖 Generated with Claude Code

https://claude.ai/code/session_01291QUFHs51wLhGQwp2DAh9

jsdom 26 (jest-environment-jsdom 30) won't let tests replace
window.location, so the external sign-in pages leave through a small
lib/navigate module the tests mock, and set the hash with
history.replaceState. Supersedes Dependabot #215.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01291QUFHs51wLhGQwp2DAh9
@adeelahmad adeelahmad self-assigned this Oct 9, 2026
BlockSuite after 0.19 publishes every package with exports pointing at
src/*.ts (all 86 @BlockSuite packages at 0.22.4) and no longer ships
the editor presets, so it only builds inside AFFiNE's own monorepo.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01291QUFHs51wLhGQwp2DAh9
@adeelahmad adeelahmad changed the title build(deps-dev): bump jest to 30 build(deps): bump jest to 30 and keep BlockSuite on 0.19 Oct 9, 2026
Copy link
Copy Markdown
Owner Author

"FastAPI (SurrealDB server)" failed in tests/api/test_sensors.py::test_hub_takes_devices_in_and_organises_them (assert 2 == 3). This PR only touches the frontend and dependabot.yml, the same job passed on e1c710e, and this MQTT sensors test has failed intermittently before (#217). No fix exists yet; re-running the failed job once.


Generated by Claude Code

@adeelahmad
adeelahmad merged commit 3c17eae into main Oct 9, 2026
10 of 11 checks passed
@adeelahmad
adeelahmad deleted the claude/project-thread-od4r1g branch October 9, 2026 17:51
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

0