Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('renders correctly', async () => {
const id = '9200000111963040';
const testId = 'product-details';
const { container, queryByTestId, findByText } = render(
);
mockAllIsIntersecting(true);
expect(queryByTestId(testId)).toBe(null);
await findByText(/De Ghost Recon/);
expect(queryByTestId(testId)).toBeDefined();
// generic contract
expect(container).toMatchSnapshot();
});
});