-
-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
patch(vest): move suite selectors out into their own module for easie…
…r consumption by external sources (#906)
- Loading branch information
Showing
21 changed files
with
274 additions
and
295 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
packages/vest/src/core/suite/produce/summaryGenerators/SuiteSummaryTypes.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
export type SuiteSummary = { | ||
groups: Groups; | ||
tests: Tests; | ||
valid: boolean; | ||
} & SummaryBase; | ||
|
||
export type TestsContainer = Group | Tests; | ||
export type GroupTestSummary = SingleTestSummary; | ||
|
||
export type Groups = Record<string, Group>; | ||
export type Group = Record<string, GroupTestSummary>; | ||
export type Tests = Record<string, SingleTestSummary>; | ||
|
||
export type SingleTestSummary = SummaryBase & { | ||
errors: string[]; | ||
warnings: string[]; | ||
valid: boolean; | ||
}; | ||
|
||
type SummaryBase = { | ||
errorCount: number; | ||
warnCount: number; | ||
testCount: number; | ||
}; | ||
|
||
export type GetFailuresResponse = FailureMessages | string[]; | ||
|
||
export type FailureMessages = Record<string, string[]>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
.../__tests__/collectFailureMessages.test.ts → .../__tests__/collectFailureMessages.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...getFailures/__tests__/getFailures.test.ts → ...rySelectors/__tests__/getFailures.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ures/__tests__/getFailuresByGroup.test.ts → ...tors/__tests__/getFailuresByGroup.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...hasFailuers/__tests__/hasFailures.test.ts → ...rySelectors/__tests__/hasFailures.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...uers/__tests__/hasFailuresByGroup.test.ts → ...tors/__tests__/hasFailuresByGroup.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 0 additions & 24 deletions
24
packages/vest/src/core/suite/produce/summarySelectors/getFailures/getFailures.ts
This file was deleted.
Oops, something went wrong.
37 changes: 0 additions & 37 deletions
37
packages/vest/src/core/suite/produce/summarySelectors/getFailures/getFailuresByGroup.ts
This file was deleted.
Oops, something went wrong.
25 changes: 0 additions & 25 deletions
25
packages/vest/src/core/suite/produce/summarySelectors/hasFailuers/hasFailures.ts
This file was deleted.
Oops, something went wrong.
47 changes: 0 additions & 47 deletions
47
packages/vest/src/core/suite/produce/summarySelectors/hasFailuers/hasFailuresByGroup.ts
This file was deleted.
Oops, something went wrong.
38 changes: 0 additions & 38 deletions
38
packages/vest/src/core/suite/produce/summarySelectors/isValid.ts
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
e8dbbc9
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.
Successfully deployed to the following URLs:
vest-next – ./website
vest-website.vercel.app
vest-next.vercel.app
vest-next-git-latest-ealush.vercel.app
vest-next-ealush.vercel.app