-
Notifications
You must be signed in to change notification settings - Fork 425
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(saniy): migrate sanity package to vitest
- chore(test): add sharding to test workflow
- Loading branch information
Showing
202 changed files
with
22,088 additions
and
22,198 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 was deleted.
Oops, something went wrong.
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
packages/sanity/src/core/comments/__tests__/buildCommentBreadcrumbs.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
...c/core/comments/__tests__/buildRangeDecorationSelectionsFromComments/boldedBefore.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
...c/core/comments/__tests__/buildRangeDecorationSelectionsFromComments/boldedInside.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
...comments/__tests__/buildRangeDecorationSelectionsFromComments/boldedInsideOutside.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
...mments/__tests__/buildRangeDecorationSelectionsFromComments/deleteAfterSingleWord.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
...comments/__tests__/buildRangeDecorationSelectionsFromComments/dramaticallyChanged.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
...omments/__tests__/buildRangeDecorationSelectionsFromComments/editInsideSingleWord.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
...mments/__tests__/buildRangeDecorationSelectionsFromComments/editOutSideSingleWord.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
...nity/src/core/comments/__tests__/buildRangeDecorationSelectionsFromComments/exact.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
...re/comments/__tests__/buildRangeDecorationSelectionsFromComments/similarWordAdded.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
packages/sanity/src/core/comments/__tests__/mergeCommentReactions.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
packages/sanity/src/core/comments/__tests__/transformChildren.test.tsx
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
packages/sanity/src/core/comments/__tests__/weakenReferencesInContentSnapshot.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
packages/sanity/src/core/components/commandList/__tests__/CommandList.test.tsx
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
packages/sanity/src/core/components/errorActions/useCopyErrorDetails.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
packages/sanity/src/core/components/rovingFocus/__tests__/useRovingFocus.test.tsx
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
2 changes: 1 addition & 1 deletion
2
packages/sanity/src/core/config/__tests__/resolveConfig.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
6 changes: 3 additions & 3 deletions
6
packages/sanity/src/core/environment/hasSanityPackageInImportMap.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
26 changes: 13 additions & 13 deletions
26
...ty/src/core/field/conditional-property/__snapshots__/useConditionalProperty.test.tsx.snap
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 |
---|---|---|
@@ -1,43 +1,43 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html | ||
|
||
exports[`Conditional property resolver calls callback function 1`] = ` | ||
Array [ | ||
Array [ | ||
Object { | ||
"currentUser": Object { | ||
exports[`Conditional property resolver > calls callback function 1`] = ` | ||
[ | ||
[ | ||
{ | ||
"currentUser": { | ||
"email": "[email protected]", | ||
"id": "doug", | ||
"name": "Doug", | ||
"role": "admin", | ||
"roles": Array [ | ||
Object { | ||
"roles": [ | ||
{ | ||
"name": "administrator", | ||
"title": "Administrator", | ||
}, | ||
], | ||
}, | ||
"document": Object { | ||
"document": { | ||
"_createdAt": "2021-11-04T15:41:48Z", | ||
"_id": "drafts.10053a07-8647-4ebd-9d1d-33a512d30d3a", | ||
"_rev": "5hb8s6-k75-ip4-4bq-5ztbf3fbx", | ||
"_type": "conditionalFieldsTest", | ||
"_updatedAt": "2021-11-05T12:34:29Z", | ||
"isPublished": true, | ||
"title": "Hello world", | ||
"venue": Object { | ||
"address": Object { | ||
"venue": { | ||
"address": { | ||
"city": "Oakland", | ||
"state": "California", | ||
"street": "2421 Telegraph Ave #102", | ||
"zip": 94612, | ||
}, | ||
"location": Object { | ||
"location": { | ||
"lat": 37.813563, | ||
"lng": -122.268812, | ||
}, | ||
}, | ||
}, | ||
"parent": Object { | ||
"parent": { | ||
"parentTest": "hello", | ||
"siblingProp": true, | ||
}, | ||
|
Oops, something went wrong.