May 2019
Intermediate to advanced
496 pages
10h 38m
English
Now, let's wrap up childrenOf so that our helpers "match" what we built in domManipulators. We'll build a render function that will call the shallow renderer, and then we'll build a child function that calls childrenOf on the result of that render. The test code will never need to manipulate the result object directly:
import { createShallowRenderer, childrenOf} from './shallowHelpers';
Read now
Unlock full access