Can be used to render a React component with Ink and return the rendered result
as a terminal compatible string. If stripped is true, it will strip ANSI
escape escape sequences.
import{ renderComponent }from'@boost/cli/test'; importTestComponentfrom'../src/components/TestComponent'; it('renders a component',async()=>{ expect(awaitrenderComponent(<TestComponent/>)).toMatchSnapshot(); });
Can be used to render a React component with Ink and return the rendered result as a terminal compatible string. If
stripped
is true, it will strip ANSI escape escape sequences.