Use forms with or without client-side JavaScript--no code duplication required!
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 

14 satır
381 B

  1. import React from 'react';
  2. import { render, screen } from '@testing-library/react';
  3. import '@testing-library/jest-dom';
  4. import Hello from '../src';
  5. describe('Example', () => {
  6. it('should have the expected content', () => {
  7. const greeting = 'World';
  8. render(<Hello greeting={greeting} />);
  9. expect(screen.getByText(`Hello ${greeting}`)).toBeInTheDocument();
  10. });
  11. });