@applicaster/zapp-react-native-ui-components 12.0.0-rc.35 → 12.0.0-rc.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -83,6 +83,7 @@ jest.mock("@applicaster/zapp-react-native-utils/reactHooks/navigation", () => ({
|
|
|
83
83
|
useNavigation: jest.fn(() => ({ currentRoute: "/river/A1234" })),
|
|
84
84
|
useRoute: jest.fn(() => ({ pathname: "/river/A1234", screenData })),
|
|
85
85
|
useProfilerLogging: jest.fn(),
|
|
86
|
+
useIsScreenActive: jest.fn().mockReturnValue(true),
|
|
86
87
|
}));
|
|
87
88
|
|
|
88
89
|
jest.mock("@applicaster/zapp-react-native-utils/reactHooks/screen", () => ({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { View } from "react-native";
|
|
3
|
-
import {
|
|
3
|
+
import { act, create } from "react-test-renderer";
|
|
4
4
|
|
|
5
5
|
const Mocked_RouteManager = jest.fn((props) => (
|
|
6
6
|
<View testID="routeManager" {...props} />
|
|
@@ -78,6 +78,7 @@ jest.mock("@applicaster/zapp-react-native-utils/reactHooks/navigation", () => ({
|
|
|
78
78
|
screenData: { id: "testId" },
|
|
79
79
|
data: { screen: { id: "testId" } },
|
|
80
80
|
})),
|
|
81
|
+
useIsScreenActive: jest.fn().mockReturnValue(true),
|
|
81
82
|
}));
|
|
82
83
|
|
|
83
84
|
jest.mock("@applicaster/zapp-react-native-redux/hooks", () => ({
|
|
@@ -4,6 +4,7 @@ import { render } from "@testing-library/react-native";
|
|
|
4
4
|
import * as PlayerFactory from "@applicaster/zapp-react-native-utils/appUtils/playerManager/playerFactory";
|
|
5
5
|
import { Player } from "@applicaster/zapp-react-native-utils/appUtils/playerManager/player";
|
|
6
6
|
import { ThemeContext } from "@applicaster/zapp-react-native-utils/theme";
|
|
7
|
+
import * as navigationHooks from "@applicaster/zapp-react-native-utils/reactHooks/navigation";
|
|
7
8
|
|
|
8
9
|
import { PlayerLiveImage } from "../PlayerLiveImageComponent";
|
|
9
10
|
|
|
@@ -18,6 +19,8 @@ jest.mock(
|
|
|
18
19
|
})
|
|
19
20
|
);
|
|
20
21
|
|
|
22
|
+
jest.mock("@applicaster/zapp-react-native-utils/reactHooks/navigation");
|
|
23
|
+
|
|
21
24
|
const Wrapper = ({ children }: { children: React.ReactChildren }) => (
|
|
22
25
|
<ThemeContext.Provider
|
|
23
26
|
value={{ themes: { myTheme: {} }, selectedThemeId: "myTheme" }}
|
|
@@ -46,6 +49,8 @@ describe("PlayerLiveImageComponent", () => {
|
|
|
46
49
|
controller: new Player({}),
|
|
47
50
|
Component: () => null,
|
|
48
51
|
}));
|
|
52
|
+
|
|
53
|
+
jest.spyOn(navigationHooks, "useIsScreenActive").mockReturnValue(true);
|
|
49
54
|
});
|
|
50
55
|
|
|
51
56
|
it("should render correctly with default props", () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applicaster/zapp-react-native-ui-components",
|
|
3
|
-
"version": "12.0.0-rc.
|
|
3
|
+
"version": "12.0.0-rc.36",
|
|
4
4
|
"description": "Applicaster Zapp React Native ui components for the Quick Brick App",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
"redux-mock-store": "^1.5.3"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@applicaster/applicaster-types": "12.0.0-rc.
|
|
38
|
-
"@applicaster/zapp-react-native-bridge": "12.0.0-rc.
|
|
39
|
-
"@applicaster/zapp-react-native-redux": "12.0.0-rc.
|
|
40
|
-
"@applicaster/zapp-react-native-utils": "12.0.0-rc.
|
|
37
|
+
"@applicaster/applicaster-types": "12.0.0-rc.36",
|
|
38
|
+
"@applicaster/zapp-react-native-bridge": "12.0.0-rc.36",
|
|
39
|
+
"@applicaster/zapp-react-native-redux": "12.0.0-rc.36",
|
|
40
|
+
"@applicaster/zapp-react-native-utils": "12.0.0-rc.36",
|
|
41
41
|
"promise": "^8.3.0",
|
|
42
42
|
"react-router-native": "^5.1.2",
|
|
43
43
|
"url": "^0.11.0",
|