Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
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
Transcript
31 slides
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
More Decks by pipopotamasu
See All by pipopotamasu
How JS Works
pipopotamasu
0
240
Dive into vue-test-utils ~~Road of 1.0.0~~
pipopotamasu
0
120
medpacker_introduction_20190523
pipopotamasu
0
540
Introduction of medpacker: RoR Frontend Boilerplate
pipopotamasu
0
5.1k
新サービス・JOURNAL(ジャーナル)開発秘話
pipopotamasu
2
330
メドピアにおけるライブラリアップデート_MedBeer_20180912.pdf
pipopotamasu
0
12k
MedPeer_JapaxTaxi_MeetUp_Actioncable
pipopotamasu
0
750
MedPeer X みんなのウェディング合同勉強会
pipopotamasu
0
1.2k
UXBridge_vol3_pipopotamasu
pipopotamasu
2
940
Other Decks in Technology
See All in Technology
Kiro を使うコツ (頼み方、覚えさせ方、任せ方) | 目指せ Kiro マスター 09
inariku
PRO
3
150
顧客合意を取りながら進めるAWSコスト削減の実践
optim
0
170
SSFの現在地 ― CAEP/RISCからAI Identityへ
oidfj
0
430
会社説明資料_最新版
demaecan
0
32k
AWS構成から考えるWebセキュリティ ― WordPressの構築経験から考える公開範囲と更新運用【JAWS FESTA 2026 in AKITA】
cscengineer
PRO
2
420
AWSを利用する上で知っておきたい名前解決の話 2026
nagisa53
5
3.5k
人間+AIを「チーム」としてプロセスを再設計する
littlehands
0
250
Agent Harnessはどう作る?事例から学ぶAI Agentの設計思想
sergicalsix
0
280
属人化したISMS運用をGitHubとAIで仕組み化した1年間の記録
sioncojp
4
2.5k
令和の今、あらためて IAM を考える。アクセスキーを「無くせない現実」との向き合い方
kazzpapa3
0
680
Shared Signals Framework 仕様解説
oidfj
0
420
E2E Test というハーネス — AI時代の自動テスト民主化
daishukojima
0
250
Featured
See All Featured
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
470
First, design no harm
axbom
PRO
2
1.4k
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
380
HTML-Aware ERB: The Path to Reactive Rendering @ RubyCon 2026, Rimini, Italy
marcoroth
6
920
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
940
Believing is Seeing
oripsolob
1
280
Building an army of robots
kneath
307
47k
Become a Pro
speakerdeck
PRO
31
6.4k
Code Review Best Practice
trishagee
74
20k
A Soul's Torment
seathinner
9
3.9k
Digital Ethics as a Driver of Design Innovation
axbom
PRO
2
520
Leveraging LLMs for student feedback in introductory data science courses - posit::conf(2025)
minecr
1
470