摘要:
You can get a huge amount of confidence and coverage from integration tests that test an entire page, or even your entire app. Let’s write a test that 阅读全文
posted @ 2020-05-04 01:58
Zhentiw
阅读(331)
评论(0)
推荐(0)
摘要:
Sometimes your react component may need to do some cleanup work in the return value from useEffect or useLayoutEffect, or the componentWillUnmount lif 阅读全文
posted @ 2020-05-04 01:36
Zhentiw
阅读(374)
评论(0)
推荐(0)
摘要:
That setup function is pretty handy. Seems like a good opportunity for an abstraction. Well, we already have one! It’s called React Hooks Testing Libr 阅读全文
posted @ 2020-05-04 01:00
Zhentiw
阅读(298)
评论(0)
推荐(0)
摘要:
It’s very common for our components to use state from the redux store (or to be refactored to use it eventually). Having to change our tests every tim 阅读全文
posted @ 2020-05-04 00:42
Zhentiw
阅读(339)
评论(0)
推荐(0)

浙公网安备 33010602011771号