-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
test: migrate infer-plugins-ext-dir
test cases
#34
base: main
Are you sure you want to change the base?
Conversation
Pulls the `infer-plugins-ext-dir` tests from prettier.
{ | ||
// TODO (43081j): in prettier, this was `*.foo` and would successfully | ||
// match `src/*.foo`. In prettier CLI, this is not the case | ||
files: ["**/*.foo"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fabiospampinato this one seems like something we should discuss/decide before we merge these tests
it seems prettier treats *.foo
as if it was **/*.foo
, whereas we treat it as ./*.foo
i think we're correct, but this means a whole bunch of prettier configs may fail with our CLI. maybe we should do a special case that transforms "*.ext"
into "**/*.ext"
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I think so, no need to break the world here. The problem is that this is a bit tricky, what is the actual logic that we want? Worth checking what v3 is actually doing, because there are many potential ways to implement something like this.
I imagine we should try to explode the glob and do something with that in some cases 🤔
I think we can skip this test for now and fix it later if it's the only blocker for this test suite.
Is everything else basically just copy/pasted?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pretty much, just the paths changed to the mock/fixture extensions. The rest should be the same
0c953fb
to
ada6549
Compare
What's the blocker for this PR, interpreting |
it should be good to merge and we can track the basically globs with no path are treated like |
So in order to select files actually matching |
I think treating |
@fisker presumably it isn't worth changing this, right? 🤔 how it works currently just seems incorrect to me, if I'm understanding it right. |
34e0257
to
f8dc396
Compare
@fisker random question, but if |
I don't understand "pick", are we talking about |
Basically I think a non relative wildcard would be assumed to mean So internally:
That would be like prettier right now I think |
Pulls the
infer-plugins-ext-dir
tests from prettier.