Repository navigation
add more coverage - #248
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The tests still permit a false-positive prettification assertion and introduce an editor-registration race that can cause the lazy-loading test to fail.
2 open issues
What changed in this PR
This PR expands Source Pane test coverage toward the 85% target and scopes editor status rendering to the component’s root.
Changes:
- Adds tests for helpers, pane creation and rendering, editor actions, and error handling.
- Sets 85% coverage thresholds for statements, branches, functions, and lines.
- Adds browser API stubs and updates status-section rendering.
| File | Description |
|---|---|
vite.config.mts |
Sets coverage thresholds to 85%. |
test/statusSection.test.js |
Tests handling of a missing status element. |
test/sourcePane.test.js |
Expands MIME labeling, file creation, and rendering tests. |
test/sourceEditorCard.test.js |
Adds editor lifecycle, prettification, and save-error tests. |
test/helpers/setup.ts |
Adds canvas and computed-style stubs. |
test/helpers.test.ts |
Adds syntax validation, HTTP status, and visibility tests. |
src/components/source-editor-card/SourceEditorCard.ts |
Scopes status rendering to the editor’s root. |
Review effort: Balanced
SharonStrats
force-pushed
the
testing
branch
from
November 27, 2026 21:38
971f42d to
84dd134
Compare
Prompt: get testing coverage to 85% Co-authored-by: GPT-5.6 Luna <[email protected]>
SharonStrats
force-pushed
the
testing
branch
from
November 27, 2026 21:41
84dd134 to
e04c38a
Compare
Closed
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.

Prompt: get testing coverage to 85%