Repository navigation
build(deps): bump jest to 30 and keep BlockSuite on 0.19 - #241
Merged
Merged
Conversation
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) <[email protected]> Claude-Session: https://claude.ai/code/session_01291QUFHs51wLhGQwp2DAh9
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) <[email protected]> Claude-Session: https://claude.ai/code/session_01291QUFHs51wLhGQwp2DAh9
Owner
Author
|
"FastAPI (SurrealDB server)" failed in Generated by Claude Code |
This was referenced Oct 9, 2026
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.
Requested by Adeel · project thread
Description
Before: two Dependabot PRs were red.
jest.config.tstypes didn't match, and 7 external sign-in tests failed because jsdom 26 no longer lets tests replacewindow.location.After: the tests run on Jest 30 and jest-environment-jsdom 30, and Dependabot stops proposing BlockSuite updates. Nothing changes for users.
How:
lib/navigate.ts(navigate.assignandnavigate.replace), and the tests mock it. The tests set the URL fragment withhistory.replaceStateinstead of a fakelocation.@blocksuite/*packages point theirexportsat rawsrc/*.ts, and the editor presets (AffineEditorContainer,DocCollection,Job) are gone.@blocksuite/blocksand@blocksuite/presetsstop at 0.19.5. So.github/dependabot.ymlnow ignores@blocksuite/*, and the notes editor stays on 0.19.5.Supersedes #215 and #237.
Types of changes
Checklist:
tscandeslintclean, jest 724/724.🤖 Generated with Claude Code
https://claude.ai/code/session_01291QUFHs51wLhGQwp2DAh9