forked from sampie777/hymnbook2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtestSetup.js
More file actions
44 lines (39 loc) · 928 Bytes
/
testSetup.js
File metadata and controls
44 lines (39 loc) · 928 Bytes
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
41
42
43
44
import mockClipboard from "@react-native-clipboard/clipboard/jest/clipboard-mock.js";
jest.mock("rollbar-react-native", () => {
return {
Configuration: () => undefined,
Client: () => {
return {
log: () => undefined,
debug: () => undefined,
info: () => undefined,
warning: () => undefined,
error: () => undefined,
critical: () => undefined,
};
},
};
});
jest.mock("./source/logic/rollbar", () => {
return {
rollbar: {
log: console.log,
debug: jest.fn(),
info: console.info,
warning: console.warn,
error: console.error,
critical: console.error,
},
};
});
jest.mock("react-native-device-info", () => {
return {
getVersion: () => 1,
};
});
jest.mock("@react-native-clipboard/clipboard", () => mockClipboard);
jest.mock("@stripe/stripe-react-native", () =>{
return {
PaymentSheet: {}
}
})