MCPcopy
hub / github.com/motiondivision/motion / render

Function render

packages/framer-motion/src/jest.setup.tsx:102–112  ·  view source on GitHub ↗
(children: any, isStrict = true)

Source from the content-addressed store, hash-verified

100 })
101
102export const render = (children: any, isStrict = true) => {
103 const Wrapper = isStrict ? StrictMode : Fragment
104
105 const renderReturn = testRender(<Wrapper>{children}</Wrapper>)
106
107 return {
108 ...renderReturn,
109 rerender: (children: any) =>
110 renderReturn.rerender(<Wrapper>{children}</Wrapper>),
111 }
112}

Calls

no outgoing calls

Tested by 5

runTestsFunction · 0.72
runAnimatedValueTestsFunction · 0.72
runSpringTestsFunction · 0.72
runTestsFunction · 0.68
runTestsFunction · 0.68