-
Notifications
You must be signed in to change notification settings - Fork 346
Add: vitestでテストが動くように #1074
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
Add: vitestでテストが動くように #1074
Conversation
|
CIが通るように出来ました |
|
Vitest化できました! |
Hiroshiba
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LibraryPolicy.spec.tsがVuexのstoreをゼロから書く形になっていますが、LibraryPolicyをVuex日依存の形に書き換えるのがやはり良いのかなと思いました!
(関数名などのシグネチャのコピペが大量発生するので、テストが増えれば増えるほど、Vuex側を書き換えづらくなってしまうためです)
提案ですが、このPRはLibraryPolicyの追加と、vitestを通るようにする2つの機能があると思います。
LibraryPolicyの追加は別PRにするというというのはどうでしょう?
ですね、そのほうが色々やりやすい感じがします。 |
やっぱり必要になったときに追加、が綺麗だと思います! |
|
このPRはHowToUse.spec.tsだけにします。 |
Hiroshiba
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!!
問題ないと思うのでマージします!!
内容
LibraryPolicy.vueとHowToUse.vueのテストを追加します。
関連 Issue
スクリーンショット・動画など
(なし)
その他
単体テストを書くのが初めてなので、色々とやっちゃ行けないことをしているかもしれません。