Spaces:
Running
Running
Download src/App.test.js from static-templates/react: direct link, hf CLI and curl.
- Browser
- Download file 246 Bytes
-
https://huggingface.co/spaces/static-templates/react/resolve/e5d3fc6e22651d14cdfd5ed4ffb6ffdab1e60de3/src/App.test.js
- Command line
-
hf download hf://spaces/static-templates/react@e5d3fc6e22651d14cdfd5ed4ffb6ffdab1e60de3/src/App.test.js
-
curl -L -o App.test.js https://huggingface.co/spaces/static-templates/react/resolve/e5d3fc6e22651d14cdfd5ed4ffb6ffdab1e60de3/src/App.test.js
246 Bytes
| import { render, screen } from '@testing-library/react'; | |
| import App from './App'; | |
| test('renders learn react link', () => { | |
| render(<App />); | |
| const linkElement = screen.getByText(/learn react/i); | |
| expect(linkElement).toBeInTheDocument(); | |
| }); | |