parent
a8bd40b10b
commit
8d3db4fb67
@ -1,8 +0,0 @@
|
||||
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();
|
||||
});
|
@ -0,0 +1,12 @@
|
||||
import { render } from '@testing-library/react';
|
||||
import { describe, test, expect } from 'vitest';
|
||||
|
||||
const App = () => <div>learn react</div>
|
||||
|
||||
describe('Application', function () {
|
||||
test('renders learn react link', () => {
|
||||
const { getByText } = render(<App />);
|
||||
const linkElement = getByText(/learn react/i);
|
||||
expect(linkElement).toBeInTheDocument();
|
||||
});
|
||||
});
|
@ -0,0 +1 @@
|
||||
import '@testing-library/jest-dom'
|
Reference in new issue