import { applyTransform } from '@hypermod/utils'; import * as transformer from '..'; it('should migrate the Card component', async () => { const result = await applyTransform( transformer, ` const App = () => ( <> Create Razorpay Payments Links and share them with your customers from the Razorpay Dashboard or using APIs and start accepting payments. Check the advantages, payment methods, international currency support and more. Create Razorpay Payments Links and share them with your customers from the Razorpay Dashboard or using APIs and start accepting payments. Check the advantages, payment methods, international currency support and more. } suffix={} /> NEW} /> Hello World } suffix={} /> NEW} /> Hello World } suffix={} /> NEW} /> Hello World } suffix={} /> } /> Hello World ); `, { parser: 'tsx' }, ); expect(result).toMatchInlineSnapshot(` "const App = () => ( <> Create Razorpay Payments Links and share them with your customers from the Razorpay Dashboard or using APIs and start accepting payments. Check the advantages, payment methods, international currency support and more. Create Razorpay Payments Links and share them with your customers from the Razorpay Dashboard or using APIs and start accepting payments. Check the advantages, payment methods, international currency support and more. } suffix={} /> NEW} /> Hello World } suffix={} /> NEW} /> Hello World } suffix={} /> NEW} /> Hello World } suffix={} /> } /> Hello World );" `); });