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

tech(Storybook): add @storybook/addon-console to storybook #8231

Merged

Conversation

EldarMuhamethanov
Copy link
Contributor

Описание

При дебаге компонента в сторибуке через вызовы console.log(и других методов) приходится параллельно открывать консоль разработчика, чтобы посмотреть логи. Это бывает очень неудобно, если использовать только один экран ноутбука. Чтобы упростить дебаг, можно подключить аддон для сторибука @storybook/addon-console, который позволяет выводить логи во вкладку Actions

Изменения

  • Подключил пакет @storybook/addon-console.
  • Добавил decorator из пакета в storybook/preview.ts

Release notes

@EldarMuhamethanov EldarMuhamethanov added this to the v7.2.0 milestone Feb 3, 2025
@EldarMuhamethanov EldarMuhamethanov self-assigned this Feb 3, 2025
@EldarMuhamethanov EldarMuhamethanov requested a review from a team as a code owner February 3, 2025 13:52
Copy link

codesandbox-ci bot commented Feb 3, 2025

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 Feb 3, 2025

size-limit report 📦

Path Size
JS 394.08 KB (0%)
JS (gzip) 119.52 KB (0%)
JS (brotli) 98.35 KB (0%)
JS import Div (tree shaking) 1.56 KB (0%)
CSS 347.5 KB (0%)
CSS (gzip) 43.02 KB (0%)
CSS (brotli) 34.3 KB (0%)

Copy link
Contributor

github-actions bot commented Feb 3, 2025

e2e tests

Playwright Report

Copy link
Contributor

github-actions bot commented Feb 3, 2025

👀 Docs deployed

Commit afd93ac

Copy link

codecov bot commented Feb 3, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.51%. Comparing base (b44e6e7) to head (afd93ac).
Report is 5 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #8231   +/-   ##
=======================================
  Coverage   95.51%   95.51%           
=======================================
  Files         404      404           
  Lines       11531    11535    +4     
  Branches     3830     3829    -1     
=======================================
+ Hits        11014    11018    +4     
  Misses        517      517           
Flag Coverage Δ
unittests 95.51% <ø> (+<0.01%) ⬆️

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.

Copy link
Contributor

@inomdzhon inomdzhon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥

@EldarMuhamethanov EldarMuhamethanov merged commit 47c2543 into master Feb 3, 2025
29 checks passed
@EldarMuhamethanov EldarMuhamethanov deleted the e.muhamethanov/add-console-addon-to-storybook branch February 3, 2025 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

3 participants