Skip to content

[lexical-website] Documentation Update: fix the test path in the traversals maintenance comment - #9207

Merged
etrepum merged 1 commit into
meta:mainfrom
potatowagon:docs-traversals-test-path
Sep 23, 2026
Merged

etrepum merged 1 commit into
meta:mainfrom
potatowagon:docs-traversals-test-path

Conversation

@potatowagon

Copy link
Copy Markdown
Contributor

Description

The HTML comment that tells maintainers to keep the traversal examples in sync
with their tests points at packages/src/lexical/caret/.... The first two path
segments are swapped — the file is packages/lexical/src/caret/.... Anyone
following the comment to update the tests hits a missing path.

Test plan

Documentation-only change (markdown is excluded from prettier via
.prettierignore), so the check is that the referenced file exists.

Before

$ grep -n "docs-traversals.test.ts" packages/lexical-website/docs/concepts/traversals.md
171:<!-- when you update the example code below, please update the tests in packages/src/lexical/caret/__tests__/unit/docs-traversals.test.ts -->

$ ls packages/src/lexical/caret/__tests__/unit/docs-traversals.test.ts
ls: packages/src/lexical/caret/__tests__/unit/docs-traversals.test.ts: No such file or directory

After

$ grep -n "docs-traversals.test.ts" packages/lexical-website/docs/concepts/traversals.md
171:<!-- when you update the example code below, please update the tests in packages/lexical/src/caret/__tests__/unit/docs-traversals.test.ts -->

$ ls packages/lexical/src/caret/__tests__/unit/docs-traversals.test.ts
packages/lexical/src/caret/__tests__/unit/docs-traversals.test.ts

…ersals maintenance comment

## Description

The HTML comment that tells maintainers to keep the traversal examples in sync
with their tests points at `packages/src/lexical/caret/...`. The first two path
segments are swapped — the file is `packages/lexical/src/caret/...`. Anyone
following the comment to update the tests hits a missing path.

## Test plan

Documentation-only change (markdown is excluded from prettier via
`.prettierignore`), so the check is that the referenced file exists.

### Before

```
$ grep -n "docs-traversals.test.ts" packages/lexical-website/docs/concepts/traversals.md
171:<!-- when you update the example code below, please update the tests in packages/src/lexical/caret/__tests__/unit/docs-traversals.test.ts -->

$ ls packages/src/lexical/caret/__tests__/unit/docs-traversals.test.ts
ls: packages/src/lexical/caret/__tests__/unit/docs-traversals.test.ts: No such file or directory
```

### After

```
$ grep -n "docs-traversals.test.ts" packages/lexical-website/docs/concepts/traversals.md
171:<!-- when you update the example code below, please update the tests in packages/lexical/src/caret/__tests__/unit/docs-traversals.test.ts -->

$ ls packages/lexical/src/caret/__tests__/unit/docs-traversals.test.ts
packages/lexical/src/caret/__tests__/unit/docs-traversals.test.ts
```
@vercel

vercel Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
lexical Ready Ready Preview Sep 23, 2026 5:35pm UTC
lexical-playground Ready Ready Preview Sep 23, 2026 5:35pm UTC

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 Sep 23, 2026
@etrepum
etrepum added this pull request to the merge queue Sep 23, 2026
Merged via the queue into meta:main with commit dcae7f3 Sep 23, 2026
42 checks passed
@etrepum etrepum mentioned this pull request Sep 28, 2026

This branch was successfully deployed

2 active deployments
Preview – lexical — f02d50c1 Deployed Sep 23, 2026 by vercel[bot]
Preview – lexical-playground — f02d50c1 Deployed Sep 23, 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants