Skip to content

fix: detect test modes in options objects - #937

Merged
veritem merged 1 commit into
vitest-dev:mainfrom
Guflly:fix/options-object-test-modes
Aug 3, 2026
Merged

fix: detect test modes in options objects#937
veritem merged 1 commit into
vitest-dev:mainfrom
Guflly:fix/options-object-test-modes

Conversation

@Guflly

@Guflly Guflly commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Fixes #897

Adds support for only, skip, and todo when they are enabled through a test options object. Only literal true values are treated as active, and the existing autofixes continue to work for focused and disabled tests.

Tests cover all three rules, autofixes, and false-value cases.

@veritem veritem left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

thank you!

@veritem
veritem merged commit 684545f into vitest-dev:main Aug 3, 2026
5 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.

no-focused-tests/no-disabled-tests/warn-todo should detect Vitest options object modes

2 participants