Skip to content
This repository was archived by the owner on Jul 30, 2020. It is now read-only.

Commit 01086f9

Browse files
author
Brandon Carroll
committed
export the rest of the library
1 parent 863aed8 commit 01086f9

File tree

2 files changed

+16
-6
lines changed

2 files changed

+16
-6
lines changed

examples/__tests__/react-intl.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { FormattedDate } from 'react-intl-native';
55
import IntlPolyfill from 'intl';
66
import 'intl/locale-data/jsonp/pt';
77

8-
import { render } from '../../src';
8+
import { getByText, render } from '../../src';
99

1010
const setupTests = () => {
1111
if (global.Intl) {
@@ -39,7 +39,7 @@ const renderWithReactIntl = component => {
3939
setupTests();
4040

4141
test('it should render FormattedDate and have a formatted pt date', () => {
42-
const { getByText } = renderWithReactIntl(<FormatDateView />);
42+
const { baseElement } = renderWithReactIntl(<FormatDateView />);
4343

44-
getByText('11/03/2019');
44+
getByText({ container: baseElement }, '11/03/2019');
4545
});

src/index.js

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import React from 'react';
22
import TR from 'react-test-renderer';
33

4-
import { wait } from './wait';
54
import act from './act-compat';
5+
import * as queries from './queries';
66
import { prettyPrint } from './pretty-print';
7-
import { waitForElement } from './wait-for-element';
7+
import * as queryHelpers from './query-helpers';
88
import { fireEvent as rntlFireEvent, NativeEvent } from './events';
99
import { getQueriesForElement } from './get-queries-for-element';
1010

@@ -50,4 +50,14 @@ Object.keys(rntlFireEvent).forEach(key => {
5050
};
5151
});
5252

53-
export { act, fireEvent, render, wait, waitForElement, NativeEvent };
53+
export * from './events';
54+
export * from './get-node-text';
55+
export * from './get-queries-for-element';
56+
export * from './pretty-print';
57+
export * from './queries';
58+
export * from './query-helpers';
59+
export * from './wait';
60+
export * from './wait-for-element';
61+
export { getDefaultNormalizer } from './matches';
62+
63+
export { act, fireEvent, queries, queryHelpers, render, NativeEvent };

0 commit comments

Comments
 (0)