You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What I am trying to achieve is basically the following -> my unit tests don't have any addtional prefix (like some-service.test.ts) but my integration tests have int.test.ts prefix (like some-service.int.test.ts). I want to selectively run one or the other. See the scripts below to illustrate what I want to have. Basically the ability to exclude patterns from test.
"test:unit": "vitest run -t .!(int).test.ts",
"test:integration": "vitest run -t .int.test.ts",
Suggested solution
I have no particular suggested solution except maybe follow the Jest CLI regex in this regard? 🤔
Ah gotcha. So can we add the possibility to add testPathPattern in conjunction with testPathIgnorePatterns (that Jest supports)? Here is from my enterprise project that uses Jest.
Clear and concise description of the problem
What I am trying to achieve is basically the following -> my unit tests don't have any addtional prefix (like
some-service.test.ts
) but my integration tests haveint.test.ts
prefix (likesome-service.int.test.ts
). I want to selectively run one or the other. See the scripts below to illustrate what I want to have. Basically the ability to exclude patterns from test.Suggested solution
I have no particular suggested solution except maybe follow the Jest CLI regex in this regard? 🤔
Alternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: