This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as React from 'react' | |
import { fireEvent, render } from 'react-native-testing-library' | |
import { HookTest } from '../HookTest' | |
describe('Test Hooks', () => { | |
test('changeText', () => { | |
const { getByTestId, getByPlaceholder, queryByDisplayValue } = render( | |
<HookTest />) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { filter } from 'graphql-anywhere'; | |
import hoistNonReactStatic from 'hoist-non-react-statics'; | |
/* | |
* createFragmentContainer returns a component which expects props that match | |
* WrappedComponent's fragment names, and provides data masking | |
*/ | |
export default function createFragmentContainer(WrappedComponent) { |