Skip to content

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

Merged
etrepum merged 3 commits into
facebook: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 into
facebook:mainfrom
etrepum:using-editor-tests

Conversation

@etrepum

@etrepum etrepum commented Mar 19, 2026

Copy link
Copy Markdown
Collaborator

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

vercel Bot commented Mar 19, 2026

Copy link
Copy Markdown

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
@etrepum etrepum deleted the using-editor-tests branch April 19, 2026 02:33
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

2 participants