import React from 'react' import { toBeDisabled, toHaveStyle, toHaveTextContent } from '@testing-library/jest-native' import { cleanup, fireEvent, render } from '@testing-library/react-native/pure' import Button from '@components/Button' expect.extend({ toBeDisabled, toHaveStyle, toHaveTextContent }) describe('Testing component button', () => { afterEach(cleanup) describe('static button', () => { it('with text only', () => { const onPress = jest.fn() const { getByTestId, toJSON } = render(