摘要: When testing React components, we often want to make sure the rendered output of the component matches what we expect. With the React Shallow Renderer... 阅读全文
posted @ 2016-01-07 16:53 Zhentiw 阅读(194) 评论(0) 推荐(0) 编辑
摘要: Setting up a shallow renderer for each test can be redundant, especially when trying to write similar tests that have slight tweaks. In this lesson, w... 阅读全文
posted @ 2016-01-07 15:12 Zhentiw 阅读(172) 评论(0) 推荐(0) 编辑
摘要: Often our components have output that shows differently depending on the props it is given; in this lesson, we go over how to compare theclassNameprop... 阅读全文
posted @ 2016-01-07 03:52 Zhentiw 阅读(273) 评论(0) 推荐(0) 编辑
摘要: The React Shallow Renderer test utility lets us inspect the output of a component one level deep. In this lesson, we will examine the rendered output ... 阅读全文
posted @ 2016-01-07 03:37 Zhentiw 阅读(266) 评论(0) 推荐(0) 编辑