PR-188649:

Adding Test to proyect.
This commit is contained in:
2022-05-30 17:25:45 +00:00
parent 55b0b9f2c3
commit c693b4f6a2
6 changed files with 5816 additions and 1 deletions

View File

@ -0,0 +1 @@
module.exports = '';

View File

@ -0,0 +1,20 @@
import React from 'react';
import { render } from '@testing-library/react';
import { Card } from '../Card';
describe('<App/> Component', () => {
beforeEach(() => {
fetchMock.resetMocks();
});
test('Should render <Card /> Component', async () => {
fetchMock.mockResponseOnce(JSON.stringify({
//First Data Fetch
data: 'data'
}));
render(
<Card title='Test Title'><p>Test Content</p></Card>
)
})
})