import {render} from '@testing-library/react'; import {render as amisRender} from '../../src'; import {makeEnv} from '../helper'; test('Renderer:alert', () => { const {container} = render( amisRender( { type: 'video', src: '${url}' }, { data: { url: 'https://example.com/video.mp4' } }, makeEnv({}) ) ); expect(container).toMatchSnapshot(); });