import { h } from 'preact'; import render from 'preact-render-to-json'; import CodeEditor from '../codeEditor'; const getCodeEditor = () => ( ); describe('', () => { it('should render and test snapshot', () => { const tree = render(getCodeEditor()); expect(tree).toMatchSnapshot(); }); });