Skip to content
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

fix(deps): update dependency @sanity/ui to ^2.7.0 #7168

Merged
merged 2 commits into from
Jul 16, 2024
Merged

Conversation

stipsan
Copy link
Member

@stipsan stipsan commented Jul 16, 2024

It seems like the reason the #7165 test suite is failing is because a lot of tests call jest.resetAllMocks(), and since the matchMedia mock uses jest.fn().mockImplementation it leads to the implementation later becoming () => undefined when it should always be (query: string) => ({matches: false, media: query, onchange: null, ...rest})

Closes #7165

@stipsan stipsan requested a review from a team as a code owner July 16, 2024 15:38
@stipsan stipsan requested review from rexxars and removed request for a team July 16, 2024 15:38
Copy link

vercel bot commented Jul 16, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
page-building-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 16, 2024 4:27pm
performance-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 16, 2024 4:27pm
test-compiled-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 16, 2024 4:27pm
test-next-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 16, 2024 4:27pm
test-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 16, 2024 4:27pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
studio-workshop ⬜️ Ignored (Inspect) Visit Preview Jul 16, 2024 4:27pm

Copy link
Contributor

No changes to documentation

Copy link
Contributor

github-actions bot commented Jul 16, 2024

Component Testing Report Updated Jul 16, 2024 4:11 PM (UTC)

File Status Duration Passed Skipped Failed
comments/CommentInput.spec.tsx ✅ Passed (Inspect) 44s 15 0 0
formBuilder/ArrayInput.spec.tsx ✅ Passed (Inspect) 8s 3 0 0
formBuilder/inputs/PortableText/Annotations.spec.tsx ✅ Passed (Inspect) 30s 6 0 0
formBuilder/inputs/PortableText/copyPaste/CopyPaste.spec.tsx ✅ Passed (Inspect) 36s 11 7 0
formBuilder/inputs/PortableText/copyPaste/CopyPasteFields.spec.tsx ✅ Passed (Inspect) 0s 0 12 0
formBuilder/inputs/PortableText/Decorators.spec.tsx ✅ Passed (Inspect) 18s 6 0 0
formBuilder/inputs/PortableText/DisableFocusAndUnset.spec.tsx ✅ Passed (Inspect) 10s 3 0 0
formBuilder/inputs/PortableText/DragAndDrop.spec.tsx ✅ Passed (Inspect) 3m 0s 0 0 0
formBuilder/inputs/PortableText/FocusTracking.spec.tsx ✅ Passed (Inspect) 44s 15 0 0
formBuilder/inputs/PortableText/Input.spec.tsx ✅ Passed (Inspect) 1m 51s 21 0 0
formBuilder/inputs/PortableText/ObjectBlock.spec.tsx ✅ Passed (Inspect) 1m 14s 18 0 0
formBuilder/inputs/PortableText/PresenceCursors.spec.tsx ✅ Passed (Inspect) 9s 3 9 0
formBuilder/inputs/PortableText/RangeDecoration.spec.tsx ✅ Passed (Inspect) 25s 9 0 0
formBuilder/inputs/PortableText/Styles.spec.tsx ✅ Passed (Inspect) 18s 6 0 0
formBuilder/inputs/PortableText/Toolbar.spec.tsx ✅ Passed (Inspect) 1m 14s 21 0 0
formBuilder/tree-editing/TreeEditing.spec.tsx ✅ Passed (Inspect) 1m 46s 30 0 0
formBuilder/tree-editing/TreeEditingNestedObjects.spec.tsx ✅ Passed (Inspect) 20s 3 0 0

@stipsan stipsan added this pull request to the merge queue Jul 16, 2024
Merged via the queue into next with commit b60195b Jul 16, 2024
39 of 41 checks passed
@stipsan stipsan deleted the fix-match-media-tests branch July 16, 2024 16:24
cngonzalez pushed a commit that referenced this pull request Aug 20, 2024
* fix(deps): update dependency @sanity/ui to ^2.7.0

* chore: fix failing matchMedia tests

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants