Skip to content

fix: rebuild fragment on geometry change#2842

Open
artem-harbour wants to merge 1 commit intomainfrom
artem/SD-2446
Open

fix: rebuild fragment on geometry change#2842
artem-harbour wants to merge 1 commit intomainfrom
artem/SD-2446

Conversation

@artem-harbour
Copy link
Copy Markdown
Contributor

Linear: SD-2446

@artem-harbour artem-harbour self-assigned this Apr 16, 2026
@linear
Copy link
Copy Markdown

linear bot commented Apr 16, 2026

@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Copy link
Copy Markdown
Contributor

@chittolinag chittolinag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Approved, but left a small comment on the test.

const lineAfter = fragmentAfter.querySelector('.superdoc-line') as HTMLElement;

expect(fragmentAfter).toBe(fragmentBefore);
expect(fragmentAfter).not.toBe(fragmentBefore);
Copy link
Copy Markdown
Contributor

@chittolinag chittolinag Apr 17, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@artem-harbour I think it makes more sense to use toEqual here. I know that the old code was already using toBe, but toBe does a strict comparison using ===. This means that the objects could be semantically the same, but toBe would still result in false.

Jest's doc:

Image

@artem-harbour artem-harbour force-pushed the artem/SD-2446 branch 2 times, most recently from 9c16409 to efbeb86 Compare April 20, 2026 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants