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

test(todo): mv getFake*Event to *EventMock #8035

Merged
merged 1 commit into from
Dec 11, 2024

Conversation

inomdzhon
Copy link
Contributor

@inomdzhon inomdzhon commented Dec 3, 2024

Описание

Зарезолвил TODO в тесте useBottomSheet(), который оставлял в #6759

Упростил getFakeTouchEvent и getFakeMouseEvent до функций, которые возвращают объект.

Заметил, что если вторым аргументом в fireEvent из testing-library/react передавать объект события, то он работает не корректно – лучше передавать сразу опции, которые принимают те или иные события.

Release notes

@inomdzhon inomdzhon self-assigned this Dec 3, 2024
@inomdzhon inomdzhon requested a review from a team as a code owner December 3, 2024 09:35
Copy link
Contributor

github-actions bot commented Dec 3, 2024

size-limit report 📦

Path Size
JS 384.63 KB (0%)
JS (gzip) 116.33 KB (0%)
JS (brotli) 95.78 KB (0%)
JS import Div (tree shaking) 1.56 KB (0%)
CSS 337.07 KB (0%)
CSS (gzip) 42.75 KB (0%)
CSS (brotli) 33.77 KB (0%)

Copy link

codesandbox-ci bot commented Dec 3, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Copy link
Contributor

github-actions bot commented Dec 3, 2024

e2e tests

Playwright Report

Copy link
Contributor

github-actions bot commented Dec 3, 2024

👀 Docs deployed

Commit 483c6da

Copy link

codecov bot commented Dec 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.47%. Comparing base (90bb0cc) to head (483c6da).
Report is 45 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #8035   +/-   ##
=======================================
  Coverage   95.47%   95.47%           
=======================================
  Files         393      393           
  Lines       11188    11188           
  Branches     3708     3708           
=======================================
  Hits        10682    10682           
  Misses        506      506           
Flag Coverage Δ
unittests 95.47% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@vkcom-publisher vkcom-publisher added pr-needs-work Автоматизация: PR автоматически закроется через 14 дней при отсутствии активности and removed pr-needs-work Автоматизация: PR автоматически закроется через 14 дней при отсутствии активности labels Dec 10, 2024
@inomdzhon inomdzhon merged commit 70e31ad into master Dec 11, 2024
28 checks passed
@inomdzhon inomdzhon deleted the imirdzhamolov/tech/fix-todo-by-test branch December 11, 2024 14:48
BlackySoul pushed a commit that referenced this pull request Dec 16, 2024
Зарезолвил TODO в тесте `useBottomSheet()`, который оставлял в #6759

Упростил `getFakeTouchEvent` и `getFakeMouseEvent` до функций, которые возвращают объект.

Заметил, что если вторым аргументом в `fireEvent` из `testing-library/react` передавать объект события, то он работает не корректно – лучше передавать сразу опции, которые принимают те или иные события.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants