test: migrate unit tests from terse-pt to textspec - #2554
Merged
Conversation
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
📦 Bundle Stats —
|
| Metric | Value | vs main (84e000f) |
|---|---|---|
| Internal (raw) | 733.6 KB | - |
| Internal (gzip) | 139.9 KB | - |
| Bundled (raw) | 1.33 MB | - |
| Bundled (gzip) | 300.1 KB | - |
| Import time | 93ms | +0ms, +0.1% |
@portabletext/editor/behaviors
| Metric | Value | vs main (84e000f) |
|---|---|---|
| Internal (raw) | 467 B | - |
| Internal (gzip) | 207 B | - |
| Bundled (raw) | 424 B | - |
| Bundled (gzip) | 171 B | - |
| Import time | 2ms | +0ms, +1.3% |
@portabletext/editor/plugins
| Metric | Value | vs main (84e000f) |
|---|---|---|
| Internal (raw) | 3.1 KB | - |
| Internal (gzip) | 967 B | - |
| Bundled (raw) | 2.9 KB | - |
| Bundled (gzip) | 899 B | - |
| Import time | 8ms | -0ms, -0.4% |
@portabletext/editor/selectors
| Metric | Value | vs main (84e000f) |
|---|---|---|
| Internal (raw) | 76.5 KB | - |
| Internal (gzip) | 13.7 KB | - |
| Bundled (raw) | 71.9 KB | - |
| Bundled (gzip) | 12.6 KB | - |
| Import time | 7ms | +0ms, +0.8% |
@portabletext/editor/utils
| Metric | Value | vs main (84e000f) |
|---|---|---|
| Internal (raw) | 27.8 KB | - |
| Internal (gzip) | 5.5 KB | - |
| Bundled (raw) | 25.4 KB | - |
| Bundled (gzip) | 5.1 KB | - |
| Import time | 6ms | +0ms, +2.9% |
🗺️ . · ./behaviors · ./plugins · ./selectors · ./utils · Artifacts
Details
- Import time regressions over 10% are flagged with
⚠️ - Sizes shown as raw / gzip 🗜️. Internal bytes = own code only. Total bytes = with all dependencies. Import time = Node.js cold-start median.
christianhg
force-pushed
the
textspec-unit-tests
branch
from
April 29, 2026 07:41
0787cd5 to
32daa9e
Compare
christianhg
force-pushed
the
textspec-unit-tests
branch
from
April 29, 2026 08:05
a986579 to
7c433bf
Compare
christianhg
force-pushed
the
textspec-unit-tests
branch
from
April 29, 2026 08:19
7c433bf to
6ef412c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Migrates remaining unit-test usage of
getTersePtfrom@portabletext/testtotoTextspecfrom the editor package's test-utils.getTersePtreturns an array of terse-pt strings (one per block); textspec returns a single string with;;between blocks and inline selection markers. Combining text and selection in one assertion drops paired selection assertions where they existed.Doing this file-by-file as fixups so each migration is reviewable on its own. Tests pass on chromium per file.