Skip to content

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

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

etrepum merged 3 commits into
meta: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 meta:main with commit 83ac2df Mar 20, 2026
35 checks passed
@etrepum etrepum mentioned this pull request Apr 9, 2026
@etrepum
etrepum deleted the using-editor-tests branch April 19, 2026 02:33

This branch was successfully deployed

2 active deployments
Preview – lexical-playground — 0dadf238 Deployed Mar 19, 2026 by vercel[bot]
Preview – lexical — 0dadf238 Deployed Mar 19, 2026 by vercel[bot]
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