阅读背景:

[React] Integration test a React component that consumes a Render Prop

来源:互联网 

In this lesson, I use Enzyme and Jest's Snapshot functionality to write an integration test for a component called CounterConsumer that consumes the Render Prop component Counter. This integration test is great because it doesn't necessarily care that CounterConsumer uses Counter behind the scenes, just that it works when integrated.In this lesson, I use Enzyme and Jest's Snapsho




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: