-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Rename ProjectConfig.name to ProjectConfig.id #10051
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -513,14 +513,6 @@ describe("doesn't bleed module file extensions resolution with multiple workers" | |
|
||
expect(configs).toHaveLength(2); | ||
|
||
const [{name: name1}, {name: name2}] = configs; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. keep these, but just call them There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I initially did this, however |
||
|
||
expect(name1).toEqual(expect.any(String)); | ||
expect(name2).toEqual(expect.any(String)); | ||
expect(name1).toHaveLength(32); | ||
expect(name2).toHaveLength(32); | ||
expect(name1).not.toEqual(name2); | ||
|
||
const {stderr} = runJest(DIR, [ | ||
'--no-watchman', | ||
'-w=2', | ||
|
@@ -556,14 +548,6 @@ describe("doesn't bleed module file extensions resolution with multiple workers" | |
|
||
expect(configs).toHaveLength(2); | ||
|
||
const [{name: name1}, {name: name2}] = configs; | ||
|
||
expect(name1).toEqual(expect.any(String)); | ||
expect(name2).toEqual(expect.any(String)); | ||
expect(name1).toHaveLength(32); | ||
expect(name2).toHaveLength(32); | ||
expect(name1).not.toEqual(name2); | ||
|
||
const {stderr} = runJest(DIR, ['--no-watchman', '-w=2']); | ||
|
||
expect(stderr).toMatch('Ran all test suites in 2 projects.'); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -146,7 +146,7 @@ export type InitialOptions = Partial<{ | |
}; | ||
modulePathIgnorePatterns: Array<string>; | ||
modulePaths: Array<string>; | ||
name: string; | ||
id: string; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. sort it alphabetically |
||
noStackTrace: boolean; | ||
notify: boolean; | ||
notifyMode: string; | ||
|
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.
should
id
exist here now that I have renamedname
toid
?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.
yes