how to run only .only tests #3216
topperspal
started this conversation in
General
Replies: 3 comments 1 reply
-
I think
|
Beta Was this translation helpful? Give feedback.
1 reply
-
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Not sure how to do it with officials ways but this works for jest and vitest:
grep --exclude-dir=node_modules -rl . -e 'test.only\|it.only\|describe.only' --null | tr '\n' ' ' | xargs -0 npx vitest | grep . || npx vitest --coverage
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Suppose 2 test suites in two files
a.test.ts
b.test.ts
Now, how to test only this last test in b.test.ts.
Beta Was this translation helpful? Give feedback.
All reactions