nekochans / lgtm-cat-frontend

lgtm-cat(サービス名 LGTMeow https://lgtmeow.com) のフロントエンド用
https://lgtmeow.com
21 stars 2 forks source link

カスタムErrorの定義方法を変更 #271

Closed keitakn closed 8 months ago

keitakn commented 8 months ago

issueURL

https://github.com/nekochans/lgtm-cat-frontend/issues/249

関連 URL

https://lgtm-cat-frontend-git-feature-issue249custom-error-nekochans.vercel.app/

このPRで対応すること / このPRで対応しないこと

カスタムエラーの定義方法を以下の記事を参考に修正する。

https://www.wantedly.com/companies/wantedly/post_articles/492456

Storybook の URL もしくはスクリーンショット

https://622b6c5dc31e9e003a111eb5-vjxvbibbea.chromatic.com/

変更点概要

カスタムErrorの定義方法を以下の記事に合わせて変更。

https://www.wantedly.com/companies/wantedly/post_articles/492456

this.prototype.name に代入する事でコードをminifyしたときに代入した値が変化しないようにする。

レビュアーに重点的にチェックして欲しい点

特になし

補足情報

特になし

vercel[bot] commented 8 months ago

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

Name Status Preview Comments Updated (UTC)
lgtm-cat-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 31, 2023 4:55pm
codecov[bot] commented 8 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (2eb8960) 74.94% compared to head (c3df7b9) 73.75%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #271 +/- ## ========================================== - Coverage 74.94% 73.75% -1.19% ========================================== Files 47 47 Lines 443 423 -20 Branches 109 104 -5 ========================================== - Hits 332 312 -20 Misses 107 107 Partials 4 4 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.