simple test example - jest react

PHOTO EMBED

Fri Feb 17 2023 17:15:08 GMT+0000 (Coordinated Universal Time)

Saved by @ADistractedDev #javascript #reac #jest

test('render h1 element', () => {
  render(<App />);

  screen.debug();

  expect(screen.getByText('Hello World')).toBeInTheDocument();
});
content_copyCOPY

https://www.google.com/search?q