1import { render, screen } from '@testing-library/react-native'; 2import React from 'react'; 3 4import { LinearGradient } from '../LinearGradient'; 5 6it(`renders a complex gradient`, () => { 7 render( 8 <LinearGradient 9 colors={['red', 'blue']} 10 start={{ x: 0, y: 0 }} 11 end={{ x: 1, y: 1 }} 12 locations={[0.5, 1]} 13 /> 14 ); 15 16 expect(screen.toJSON()).toMatchSnapshot(); 17}); 18