|
|
@ -0,0 +1,10 @@ |
|
|
|
|
|
|
|
import React from 'react'; |
|
|
|
import { render } from '@testing-library/react'; |
|
|
|
import Button from './button'; |
|
|
|
|
|
|
|
test('our first react test case', () => { |
|
|
|
const wrapper = render(<Button>Nice</Button>); |
|
|
|
const element = wrapper.queryByText('Nice'); |
|
|
|
expect(element).toBeTruthy(); |
|
|
|
}) |