Skip to content

Commit 2692d4a

Browse files
fix: add missing exports back to index; import from index in unit tests
1 parent 34dbd87 commit 2692d4a

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

ts/__tests__/Iterable.spec.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,13 @@ import { MockLinking } from '../__mocks__/MockLinking'
33
import { TestHelper } from './TestHelper'
44
import { NativeEventEmitter } from 'react-native'
55

6+
// import from the same location that consumers import from
67
import {
78
Iterable,
9+
IterableConfig
10+
} from '../index'
11+
12+
import {
813
IterableAttributionInfo,
914
IterableCommerceItem,
1015
IterableActionContext,
@@ -13,8 +18,6 @@ import {
1318
IterableActionSource
1419
} from '../Iterable'
1520

16-
import IterableConfig from '../IterableConfig'
17-
1821
beforeEach(() => {
1922
jest.clearAllMocks()
2023
})

ts/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
* @module react-native-iterable-sdk
66
*/
77

8+
import { Iterable } from './Iterable'
9+
810
import {
911
IterableAction,
1012
IterableActionContext,
@@ -34,7 +36,11 @@ import useAppStateListener from './useAppStateListener'
3436
import useDeviceOrientation from './useDeviceOrientation'
3537
import InboxImpressionRowInfo from './InboxImpressionRowInfo'
3638

39+
import IterableConfig from './IterableConfig'
40+
3741
export {
42+
Iterable,
43+
IterableConfig,
3844
IterableAction,
3945
IterableActionContext,
4046
IterableLogLevel,

0 commit comments

Comments
 (0)