Skip to content

[*] Chore: Update unit tests with extensions to use explicit resource management (using)#8243

Merged
etrepum merged 3 commits intofacebook:mainfrom
etrepum:using-editor-tests
Mar 20, 2026
Merged

[*] Chore: Update unit tests with extensions to use explicit resource management (using)#8243
etrepum merged 3 commits intofacebook:mainfrom
etrepum:using-editor-tests

Conversation

@etrepum
Copy link
Copy Markdown
Collaborator

@etrepum etrepum commented Mar 19, 2026

Description

Refactors unit tests using buildEditorFromExtensions to use an explicit using (if the editor is block scoped) or dispose call (if the editor is not block scoped). using will call dispose (Symbol.dispose) on the editor when it goes out of scope.

Test plan

Unit tests still pass

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 19, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
lexical Ready Ready Preview, Comment Mar 19, 2026 8:05pm
lexical-playground Ready Ready Preview, Comment Mar 19, 2026 8:05pm

Request Review

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 19, 2026
@etrepum etrepum added this pull request to the merge queue Mar 20, 2026
Merged via the queue into facebook:main with commit 83ac2df Mar 20, 2026
37 checks passed
@etrepum etrepum mentioned this pull request Apr 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. extended-tests Run extended e2e tests on a PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants