-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathjestSetup.js
40 lines (40 loc) · 1.12 KB
/
jestSetup.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
jest.mock('./index.js', () => ({
analyticsEventEnabled: jest.fn(),
componentDidAppearListener:jest.fn(),
crashNow: jest.fn(),
currentSessionId: jest.fn(),
endInteraction:jest.fn(),
getReactNativeVersion:jest.fn(),
httpResponseBodyCaptureEnabled: jest.fn(),
incrementAttribute: jest.fn(),
isAgentStarted: jest.fn(),
LogLevel: {
AUDIT: 'AUDIT',
ERROR: 'ERROR',
INFO: 'INFO',
VERBOSE: 'VERBOSE',
WARNING: 'WARNING'
},
networkErrorRequestEnabled: jest.fn(),
networkRequestEnabled: jest.fn(),
noticeHttpTransaction: jest.fn(),
noticeNetworkFailure: jest.fn(),
onNavigationStateChange: jest.fn(),
onStateChange:jest.fn(),
recordBreadcrumb: jest.fn(),
recordCustomEvent: jest.fn(),
recordError: jest.fn(),
recordMetric: jest.fn(),
removeAllAttributes: jest.fn(),
removeAttribute: jest.fn(),
sendConsole: jest.fn(),
setAttribute: jest.fn(),
setInteractionName:jest.fn(),
setJSAppVersion: jest.fn(),
setMaxEventBufferTime: jest.fn(),
setMaxEventPoolSize: jest.fn(),
setUserId: jest.fn(),
shutdown: jest.fn(),
startAgent: jest.fn(),
startInteraction: jest.fn()
}));