VoidZero @voidzero.dev · Feb 4

Every test suite eventually categorizes tests: "skip this in CI," "this one is flaky," "that one needs more time." and so on. Vitest 4.1 (in beta right now) introduces Test Tags: You can now define these categories globally, attach config or behavior and eventually filter what runs.

57 likes 1 replies

?

Replies

VoidZero · Feb 4

It is a simple as ``` vitest --tags-filter="frontend && !(slow || flaky)" ``` No more scattered workarounds. Your test organization finally matches how you think about your code. Wanna know more? Check out the docs main.vitest.dev/guide/test-t...