Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Selective test on workspace name with the --package option #2145
Selective test on workspace name with the --package option #2145
Changes from 7 commits
0a73fdc
2f64ea3
1cb6c0f
f490d73
086a088
98f82ed
2d649a4
0111c22
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Also a typo?
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.
Maybe not. I'm confused - are they workspaces or packages? In my mind, a workspace can consist of many packages (the workspace usually means the
packages
dir, if talking in yarn languge)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.
It's incredibly confusing, but it seems that any package that falls in the
workspaces
glob / array in the manifest is called a "workspace": https://classic.yarnpkg.com/lang/en/docs/workspaces/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.
nit: could maybe use a single
expect
statement hereThere 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.
Mmmh, not sure what you mean - it's not possible to pass an array to
toContain
and it's not possible to chain expectations, how would you use a singleexpect
?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.
Unless you're saying that we can conflate
packages/c/src/__tests__/utils/c-nested.test.ts
andpackages/c/src/__tests__/utils/c-nested.test.ts
into their common root:packages/c/src/__tests__/
; in that case I explicitly wanted to show that we're executing all the tests of a workspace, including those in subdirectories.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.
What's the shape of
resultPackagesWithAncestors.stderr
? I can imagine we can find a way to dedupe this a bit, but it's really not a big deal