Skip to content

feat(core)!: focus and skip modifiers, replacing xit - #31

Merged
ryancundiff merged 1 commit into
canaryfrom
feat/core-focus-and-skip
Aug 21, 2026
Merged

feat(core)!: focus and skip modifiers, replacing xit#31
ryancundiff merged 1 commit into
canaryfrom
feat/core-focus-and-skip

Conversation

@ryancundiff

Copy link
Copy Markdown
Contributor

it and describe become callable tables carrying it.only, it.skip, it.todo, describe.only and describe.skip, so the destructuring line at the top of a spec keeps working. Focus resolves per run without mutating the registry: skip beats focus, the name filter narrows first, and focus only engages when a focused test would actually execute, so a bodyless or skipped .only cannot silence a file. test_skip gains focusExcluded and run_end gains focusUsed, both additive on protocol v1. --forbid-only fails the run when a focus modifier is committed.

BREAKING CHANGE: xit is removed. it.skip replaces it with the same signature, so migrating is a rename.

it and describe become callable tables carrying it.only, it.skip,
it.todo, describe.only and describe.skip, so the destructuring line at
the top of a spec keeps working. Focus resolves per run without
mutating the registry: skip beats focus, the name filter narrows first,
and focus only engages when a focused test would actually execute, so a
bodyless or skipped .only cannot silence a file. test_skip gains
focusExcluded and run_end gains focusUsed, both additive on protocol
v1. --forbid-only fails the run when a focus modifier is committed.

BREAKING CHANGE: xit is removed. it.skip replaces it with the same
signature, so migrating is a rename.
@ryancundiff ryancundiff added the enhancement New feature or request label Aug 21, 2026
@ryancundiff
ryancundiff merged commit a2e21eb into canary Aug 21, 2026
6 checks passed
@ryancundiff
ryancundiff deleted the feat/core-focus-and-skip branch August 21, 2026 19:58
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

None yet

Development

Successfully merging this pull request may close these issues.

1 participant