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
EnzymeでReactコンポーネントのテストを書いてみよう
Search
Kentaro Matsushita
March 30, 2017
Programming
0
1.4k
EnzymeでReactコンポーネントのテストを書いてみよう
社内LT発表
Kentaro Matsushita
March 30, 2017
Tweet
Share
More Decks by Kentaro Matsushita
See All by Kentaro Matsushita
開発のアジリティ向上のためのシステムリプレイス ~DMM GAMESの事例~
kentarom
0
670
Denoで簡単なCLIツールを作ってみる / Try to make a simple CLI tool with Deno
kentarom
0
900
GatsbyJSで作った個人ブログの構成を色々見直してみた / Improve my personal blog made with GatsbyJS
kentarom
1
340
Webサイトパフォーマンスを継続的に計測したい!!! / I want to continuously measure my website performance!!!
kentarom
2
480
Actions ToolkitではじめるGitHub Action開発 / Getting started creating a GitHub Action with Actions Toolkit
kentarom
2
1.7k
GitHub Gistを使って、アクティビティを可視化しよう / Let's try visualizing your activity using the GitHub Gist
kentarom
1
760
OGP画像を生成するNode.jsのライブラリを作ってみた / Create a Node.js module for generating Open Graph image
kentarom
1
7.2k
チームをよしなにする立場を経験して学んだこと / Things I have learned in leading the team
kentarom
0
680
AWSの既存サービスを活用して、 障害検知・復旧を迅速化するカラクリ / JAWS-UG Kanazawa x OpsJAWS
kentarom
2
4.6k
Other Decks in Programming
See All in Programming
Cloud Adoption Frameworkにみる組織とクラウド導入戦略(縮小版)
tomokusaba
1
170
ビット演算の話 / Let's play with bit operations
kaityo256
PRO
3
160
sqlcを利用してsqlに型付けを
kamiyam
0
230
Cancel Next.js Page Navigation: Full Throttle
ypresto
1
110
CSC509 Lecture 02
javiergs
PRO
0
160
Removing Corepack
yosuke_furukawa
PRO
9
1.1k
フロントエンドの標準仕様をどう追っているか / How I follow the frontend standards specs
petamoriken
2
170
Micro Frontends Unmasked: Opportunities, Challenges, Alternatives
manfredsteyer
PRO
0
250
2024-10-02 dev2next - Application Observability like you've never heard before
jonatan_ivanov
0
150
ファーストペンギンBot @Qiita Hackathon 2024 予選
dyson_web
0
210
The Efficiency Paradox and How to Save Yourself and the World
hollycummins
0
140
推しの夫に恋のGPS「ときメーター」#M5Stack #IoT #M5JPTour2024
riyu
0
220
Featured
See All Featured
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
131
32k
BBQ
matthewcrist
84
9.2k
Testing 201, or: Great Expectations
jmmastey
38
7k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
663
120k
Rails Girls Zürich Keynote
gr2m
93
13k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
355
29k
Happy Clients
brianwarren
97
6.6k
The World Runs on Bad Software
bkeepers
PRO
65
11k
Facilitating Awesome Meetings
lara
49
6k
Unsuck your backbone
ammeep
667
57k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
249
21k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
Transcript
&O[ZNFד3FBDU؝ٝه٦طٝزך ذأز剅ְג״ֲ فٓحزؿؓ٦ي涪鿇 匟♴⨳㣕龤
⡦׃ג➂ فٓحزؿؓ٦ي涪鿇⠓㆞㛇湍ؿٗٝزؒٝسث٦ي 匟♴⨳㣕龤 ث٦يדכתאֽהㄎלגתׅկ 兛媮כ،ؕؐٝز涫ꐮװؚٗ؎ٝ⡲➂
ⴱ-5דׅ 庛ַֻ鋅㸚גְֻׁ
➙傈כ &O[ZNF⢪3FBDUך ذأز䩛岀 חאְג鑧׃תׅ
3FBDU⢪גתׅ
知⽃זغٔر٦ءّٝכ+4ד ِ٦ؠ٦ָⰅ⸂ׅ♶姻ז⦼˘ ٥ً٦ٕ،سٖأPSػأٙ٦سָⰅ⸂ׁגזְ ٥ػأٙ٦سָ瀉ֺׅ ٥ً٦ٕ،سٖأך䕎䒭ֶַָ׃ְ!ָזְ +4דثؑحؙؒٓ٦ًحإ٦آ邌爙
劤䔲ח姻׃ֻ ⹛ְגְתַׅ
⡦鸐鑐ׁזְהְֽזְկ鳞ְ 㹋ꥷחؿؓ٦يח⦼Ⰵ
ذأز剅ֲֿ״
&O[ZNF "JSCOC醡ך3FBDU؝ٝه٦طٝزךذأزخ٦ٕ ٥3FBDU؝ٝه٦طٝزך乼⡲ٖٝتؚٔٝ ٥3FBDU؝ٝه٦طٝزך䮶莸ְ然钠 ٥➭ךخ٦ٕה穈さׇגذأز荈⹛⻉
㹋ꥷח剅ְג״ֲ
ֿזסֲח剅ֻ describe(() => { it('ύεϫʔυ͕ະೖྗͷͱ͖ʹΤϥʔϝοηʔ δ͕ਖ਼͍͜͠ͱ', () => { const
wrapper = mount(<SignupForm / >); wrapper.setState({ email: ‘
[email protected]
’, password: ‘' }); wrapper.simulate('submit'); expect(wrapper).to.have.text('ύεϫʔ υ֯ӳࣈͰೖྗ͍ͯͩ͘͠͞'); }); }); ذأزⰻ㺁剅ֻ ؿؓ٦ي欰䧭 ⦼إحز ⦼鷏⥋ ًحإ٦آך然钠
ذأز㹋遤
ذأز䧭⸆
תה ٥&O[ZNF⢪ֲה3FBDUךذأزָ嚂חדֹ ٥ذأز剅ֻֿהדغؚ劢搫ח־ ٥邌爙דֹגזְ 邌爙ⰻ㺁ָ麩ֲ FUD ٥⹛⡲ָ䬐⥂ׁךד㸜䗰׃ג؝٦سָ⥜姻דֹ ٥ٔؿ؋ؙةؚٔٝ
竲ֹכ8FCד
ـؚٗ剅ֹת׃