Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Partial testing with Vitest

Tags:

vitest

I want to run only some of my test files but not all, it is possible to do it ?

For example I want to run only tests that is inside /test/vue-components/ folder, how can I do it?

like image 273
Winns Avatar asked Jul 07 '26 00:07

Winns


1 Answers

I found out that it can be done with filtering feature which work for folders too.

So for my case the command was:

vitest vue-components

https://vitest.dev/guide/filtering.html

like image 185
Winns Avatar answered Jul 17 '26 23:07

Winns