Skip to content

feat(experimental): expose matchesTagsFilter to test if the current filter matches tags#9913

Merged
sheremet-va merged 8 commits intovitest-dev:mainfrom
sheremet-va:feat/expose-matchesTagsFilter
Mar 23, 2026
Merged

feat(experimental): expose matchesTagsFilter to test if the current filter matches tags#9913
sheremet-va merged 8 commits intovitest-dev:mainfrom
sheremet-va:feat/expose-matchesTagsFilter

Conversation

@sheremet-va
Copy link
Member

@sheremet-va sheremet-va commented Mar 19, 2026

Description

Allows to check dynamically if current tags filter is applied:

import { TestRunner } from 'vitest'

beforeAll(() => {
  if (TestRunner.matchesTagsFilter(['flaky'])) {
    // ...
  }
})

@netlify
Copy link

netlify bot commented Mar 19, 2026

Deploy Preview for vitest-dev ready!

Name Link
🔨 Latest commit d3bb3fa
🔍 Latest deploy log https://app.netlify.com/projects/vitest-dev/deploys/69c1389f6090e50008d207b1
😎 Deploy Preview https://deploy-preview-9913--vitest-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@sheremet-va sheremet-va changed the title feat: expose matchesTagsFilter to test if the current filter matches tags feat(experimental): expose matchesTagsFilter to test if the current filter matches tags Mar 23, 2026
@sheremet-va sheremet-va merged commit eec53d9 into vitest-dev:main Mar 23, 2026
15 of 16 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