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
1.3k
2
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
vue-function-tester
pipopotamasu
December 11, 2019
More Decks by pipopotamasu
See All by pipopotamasu
How JS Works
pipopotamasu
0
230
Dive into vue-test-utils ~~Road of 1.0.0~~
pipopotamasu
0
120
medpacker_introduction_20190523
pipopotamasu
0
530
Introduction of medpacker: RoR Frontend Boilerplate
pipopotamasu
0
5k
新サービス・JOURNAL(ジャーナル)開発秘話
pipopotamasu
2
310
メドピアにおけるライブラリアップデート_MedBeer_20180912.pdf
pipopotamasu
0
12k
MedPeer_JapaxTaxi_MeetUp_Actioncable
pipopotamasu
0
730
MedPeer X みんなのウェディング合同勉強会
pipopotamasu
0
1.2k
UXBridge_vol3_pipopotamasu
pipopotamasu
2
930
Other Decks in Technology
See All in Technology
人依存からAIネイティブの体制へ:バックエンド開発の裏側【SORACOM Discovery 2026】
soracom
PRO
0
120
DevOps Agentで運用判断をチーム資産にする~Agent InstructionsとAgent Skillを継続的に育てる~
fujioka6789
0
160
AI研修(Day2)【MIXI 26新卒技術研修】
mixi_engineers
PRO
2
1.3k
クラウドを使う側から、作る側へ / 大吉祥寺.pm 2026前夜祭
fujiwara3
7
1.7k
AI時代の開発生産性を捉え直す — 経営と現場をつなぐ「開発組織のオブザーバビリティ」— / AI Dev Ex Conference 2026
tkyowa
1
1.9k
AI エージェント時代のデジタルアイデンティティ
fujie
0
960
脱Jenkins、インターン生が挑んだCIツールGitHubActions移行
mixi_engineers
PRO
1
240
StepFunctionsとGraphRAGを活用した暗黙知活用のためのRAG基盤
yakumo
0
180
MCPをつなげて作る組織横断のAIエージェント基盤
tsubakimoto_s
0
230
Vポイント分析基盤におけるデータモデリング20年史
taromatsui_cccmkhd
4
790
BigQuery を検索ソースとした AI Agent の作り方って 〇〇 通りあんねん
satohjohn
0
130
データエンジニアリングとドメイン駆動設計
masuda220
PRO
15
2.7k
Featured
See All Featured
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
370
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
910
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
2
1.5k
For a Future-Friendly Web
brad_frost
183
10k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.7k
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.4k
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
570
Un-Boring Meetings
codingconduct
0
350
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
Paper Plane
katiecoart
PRO
2
52k
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
1
1.7k
Heart Work Chapter 1 - Part 1
lfama
PRO
8
36k
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