Skip to content

fix(jest): report skipped tests correctly - #182

Merged
V3RON merged 3 commits into
callstackincubator:mainfrom
mrousavy:feat/highlight-skipped
Aug 6, 2026
Merged

fix(jest): report skipped tests correctly#182
V3RON merged 3 commits into
callstackincubator:mainfrom
mrousavy:feat/highlight-skipped

Conversation

@mrousavy

@mrousavy mrousavy commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

What is this?

This fixes skipped Harness tests being rendered as successful tests in Jest's verbose output. Both declaration-time skips (it.skip) and runtime skips (context.skip) now use Jest's skipped treatment.

How does it work?

Harness keeps its internal skipped status and translates it to Jest's public pending assertion status at the Jest adapter boundary. The mapping is applied to both live test-case events and final file results, using Jest's supported result APIs without patching Jest or Vitest.

Why is this useful?

CI output and Jest-compatible result consumers no longer present skipped tests as passing, making test reports accurate and immediately understandable.

@vercel

vercel Bot commented Aug 5, 2026

Copy link
Copy Markdown

@mrousavy is attempting to deploy a commit to the Callstack Team on Vercel.

A member of the Team first needs to authorize it.

@mrousavy
mrousavy marked this pull request as ready for review August 5, 2026 15:30

@V3RON V3RON 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.

Verified: the fix correctly maps 'skipped' to 'pending' status, matching Jest's own pattern. Both declaration-time (it.skip) and runtime (context.skip) skips are handled properly.

@V3RON
V3RON merged commit 358faf0 into callstackincubator:main Aug 6, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants