Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
vue-function-tester
Search
pipopotamasu
December 11, 2019
Technology
2
1.2k
vue-function-tester
pipopotamasu
December 11, 2019
Tweet
Share
More Decks by pipopotamasu
See All by pipopotamasu
How JS Works
pipopotamasu
0
190
Dive into vue-test-utils ~~Road of 1.0.0~~
pipopotamasu
0
95
medpacker_introduction_20190523
pipopotamasu
0
500
Introduction of medpacker: RoR Frontend Boilerplate
pipopotamasu
0
4.8k
新サービス・JOURNAL(ジャーナル)開発秘話
pipopotamasu
2
240
メドピアにおけるライブラリアップデート_MedBeer_20180912.pdf
pipopotamasu
0
12k
MedPeer_JapaxTaxi_MeetUp_Actioncable
pipopotamasu
0
580
MedPeer X みんなのウェディング合同勉強会
pipopotamasu
0
1.1k
UXBridge_vol3_pipopotamasu
pipopotamasu
2
890
Other Decks in Technology
See All in Technology
今日からあなたもGeminiを好きになる
subaruhello
1
650
With Devin -AIの自律とメンバーの自立
kotanin0
2
790
生成AIによる情報システムへのインパクト
taka_aki
1
200
私とAWSとの関わりの歩み~意志あるところに道は開けるかも?~
nagisa53
1
130
Recoil脱却の現状と挑戦
kirik
3
460
MCPと認可まわりの話 / mcp_and_authorization
convto
2
290
KCD Lima: eBee in Peru!
lizrice
0
110
P2P ではじめる WebRTC のつまづきどころ
tnoho
1
270
分散トレーシングによる コネクティッドカーのデータ処理見える化の試み
thatsdone
0
270
経験がないことを言い訳にしない、 AI時代の他領域への染み出し方
parayama0625
0
260
SAE J1939シミュレーション環境構築
daikiokazaki
1
190
クマ×共生 HACKATHON - 熊対策を『特別な行動」から「生活の一部」に -
pharaohkj
0
180
Featured
See All Featured
The Cost Of JavaScript in 2023
addyosmani
51
8.6k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.8k
jQuery: Nuts, Bolts and Bling
dougneiner
63
7.8k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
181
54k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
331
22k
Done Done
chrislema
184
16k
The Language of Interfaces
destraynor
158
25k
Building Adaptive Systems
keathley
43
2.7k
Visualization
eitanlees
146
16k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
138
34k
Producing Creativity
orderedlist
PRO
346
40k
Transcript
Vue.jsの単体テストライブラリ 「vue-function-tester」 を作ってみた話 2019年11⽉
2 • 村上大和 • @pipopotamasu • 野球, 筋トレ
3 vue-function-testerとは?
4 vue-function-testerとは? https://github.com/pipopotamasu/vue-function-tester
5 vue-function-testerとは? • Vue.jsの「メソッドの単体テストライブラリ」 • もっというと、methods, lifecycle hooks, computed, watchをテストするライブラリ
Get Started!!
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 なぜ作ったか?
22 なんとなく 「こんな感じにテストを書きたい」 をライブラリに落とし込んだ
23 こんな感じに書きたかった
24 1) メソッドチェーンで書きたい
25 1) メソッドチェーンで書きたい
26 2) とにかく短く書きたい
27 2) とにかく短く書きたい
28 2) とにかく短く書きたい
29 3) $emitのモック省略したい
30 3) $emitのモック省略したい
31 vue-function-testerとは? https://github.com/pipopotamasu/vue-function-tester