-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Another way to allow leading space in testNamePattern
#4119
Conversation
Run & review this pull request in StackBlitz Codeflow. |
✅ Deploy Preview for fastidious-cascaron-4ded94 canceled.
|
I'm not entirely sure if it's better than the current solution (#4119). Just wanted to share with you to discuss. |
I think this change is ok. If you can fix the failing CI, we can merge it. |
It looks like it just needs a lint fix, do you have time to look here and finally merge it before releasing the next version |
547d36b
to
c93f74b
Compare
@sheremet-va @Dunqing Done, please take a look. |
@sheremet-va Could you please take a look? Thanks! |
I don't see the need for this PR personally. WebStorm should be fixed already, and the tool should change the behavior in the next version to not rely on the leading space. Vitest eventually will remove the space (probably in v1?) |
Yes, WebStorm is fully covered: (a) now it passes |
I would expect other clients to migrate as it is a breaking change like any other. |
Description
This is another attempt to fix #4103.
Pro: the fixed version of
getTaskFullName
is restored: no leading space makes #4045 fixed again.Con:
taskFullName.match(namePattern)
is called twice.@sheremet-va @Dunqing
Please don't delete this checklist! Before submitting the PR, please make sure you do the following:
pnpm-lock.yaml
unless you introduce a new test example.Tests
pnpm test:ci
.Documentation
pnpm run docs
command.Changesets
feat:
,fix:
,perf:
,docs:
, orchore:
.