UNPKG

@remotion/player

Version:

React component for embedding a Remotion preview into your app

15 lines (14 loc) 645 B
import { jsx as _jsx } from "react/jsx-runtime"; import { render } from '@testing-library/react'; const HelloWorld = () => { return _jsx("div", { children: "Hello World" }); }; const AllTheProviders = ({ children }) => { // overwriting console.error console does not gets poluted with all the errors // eslint-disable-next-line @typescript-eslint/no-empty-function window.console.error = () => { }; return _jsx("div", { children: children }); }; const customRender = (ui, options) => render(ui, { wrapper: AllTheProviders, ...options }); export * from '@testing-library/react'; export { customRender as render, HelloWorld };