Skip to content

add more coverage - #248

Merged
SharonStrats merged 1 commit into
stagingfrom
testing
Nov 27, 2026
Merged

SharonStrats merged 1 commit into
stagingfrom
testing

Conversation

@SharonStrats

Copy link
Copy Markdown
Contributor

Prompt: get testing coverage to 85%

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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

Comment thread test/sourceEditorCard.test.js Resolved
Comment thread test/sourcePane.test.js Resolved
Prompt: get testing coverage to 85%

Co-authored-by: GPT-5.6 Luna <[email protected]>
@SharonStrats SharonStrats added the enhancement New feature or request label Nov 27, 2026
@SharonStrats SharonStrats linked an issue Nov 27, 2026 that may be closed by this pull request
@SharonStrats
SharonStrats merged commit 2673e16 into staging Nov 27, 2026
8 checks passed
@SharonStrats
SharonStrats deleted the testing branch November 27, 2026 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Improve testing

2 participants