@applicaster/quick-brick-core 14.0.0-rc.47 → 14.0.0-rc.48
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { View } from "react-native";
|
|
3
|
-
import
|
|
3
|
+
import { render } from "@testing-library/react-native";
|
|
4
4
|
|
|
5
5
|
import { createRouterDecorator } from "../index";
|
|
6
6
|
|
|
@@ -26,7 +26,7 @@ describe("routerDecorator", () => {
|
|
|
26
26
|
const decorator = createRouterDecorator(Router);
|
|
27
27
|
const DecoratedComp = decorator(SomeComp);
|
|
28
28
|
|
|
29
|
-
const
|
|
30
|
-
expect(
|
|
29
|
+
const { toJSON } = render(<DecoratedComp foo="bar" />);
|
|
30
|
+
expect(toJSON()).toMatchSnapshot();
|
|
31
31
|
});
|
|
32
32
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable indent */
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
import
|
|
3
|
+
import { render } from "@testing-library/react-native";
|
|
4
4
|
import { Provider } from "react-redux";
|
|
5
5
|
import thunk from "redux-thunk";
|
|
6
6
|
import configureStore from "redux-mock-store";
|
|
@@ -175,13 +175,13 @@ describe("createQuickBrickApp", () => {
|
|
|
175
175
|
it("returns a react component and it renders correctly", () => {
|
|
176
176
|
const QuickBrickApp = createQuickBrickApp(options);
|
|
177
177
|
|
|
178
|
-
const
|
|
178
|
+
const { toJSON } = render(
|
|
179
179
|
<Provider store={store}>
|
|
180
180
|
<QuickBrickApp store={store} />
|
|
181
181
|
</Provider>
|
|
182
182
|
);
|
|
183
183
|
|
|
184
|
-
expect(
|
|
184
|
+
expect(toJSON()).toMatchSnapshot();
|
|
185
185
|
});
|
|
186
186
|
|
|
187
187
|
describe("with no InteractionManager", () => {
|
|
@@ -190,13 +190,13 @@ describe("createQuickBrickApp", () => {
|
|
|
190
190
|
const { InteractionManager, ...otherOptions } = options;
|
|
191
191
|
const QuickBrickApp = createQuickBrickApp(otherOptions);
|
|
192
192
|
|
|
193
|
-
const
|
|
193
|
+
const { toJSON } = render(
|
|
194
194
|
<Provider store={store}>
|
|
195
195
|
<QuickBrickApp store={store} />
|
|
196
196
|
</Provider>
|
|
197
197
|
);
|
|
198
198
|
|
|
199
|
-
expect(
|
|
199
|
+
expect(toJSON()).toMatchSnapshot();
|
|
200
200
|
});
|
|
201
201
|
});
|
|
202
202
|
|
|
@@ -206,13 +206,13 @@ describe("createQuickBrickApp", () => {
|
|
|
206
206
|
const { ContextProviders, ...otherOptions } = options;
|
|
207
207
|
const QuickBrickApp = createQuickBrickApp(otherOptions);
|
|
208
208
|
|
|
209
|
-
const
|
|
209
|
+
const { toJSON } = render(
|
|
210
210
|
<Provider store={store}>
|
|
211
211
|
<QuickBrickApp store={store} />
|
|
212
212
|
</Provider>
|
|
213
213
|
);
|
|
214
214
|
|
|
215
|
-
expect(
|
|
215
|
+
expect(toJSON()).toMatchSnapshot();
|
|
216
216
|
});
|
|
217
217
|
});
|
|
218
218
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applicaster/quick-brick-core",
|
|
3
|
-
"version": "14.0.0-rc.
|
|
3
|
+
"version": "14.0.0-rc.48",
|
|
4
4
|
"description": "Core package for Applicaster's Quick Brick App",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -28,13 +28,13 @@
|
|
|
28
28
|
},
|
|
29
29
|
"homepage": "https://github.com/applicaster/quickbrick#readme",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@applicaster/applicaster-types": "14.0.0-rc.
|
|
32
|
-
"@applicaster/quick-brick-core-plugins": "14.0.0-rc.
|
|
33
|
-
"@applicaster/zapp-pipes-v2-client": "14.0.0-rc.
|
|
34
|
-
"@applicaster/zapp-react-native-bridge": "14.0.0-rc.
|
|
35
|
-
"@applicaster/zapp-react-native-redux": "14.0.0-rc.
|
|
36
|
-
"@applicaster/zapp-react-native-ui-components": "14.0.0-rc.
|
|
37
|
-
"@applicaster/zapp-react-native-utils": "14.0.0-rc.
|
|
31
|
+
"@applicaster/applicaster-types": "14.0.0-rc.48",
|
|
32
|
+
"@applicaster/quick-brick-core-plugins": "14.0.0-rc.48",
|
|
33
|
+
"@applicaster/zapp-pipes-v2-client": "14.0.0-rc.48",
|
|
34
|
+
"@applicaster/zapp-react-native-bridge": "14.0.0-rc.48",
|
|
35
|
+
"@applicaster/zapp-react-native-redux": "14.0.0-rc.48",
|
|
36
|
+
"@applicaster/zapp-react-native-ui-components": "14.0.0-rc.48",
|
|
37
|
+
"@applicaster/zapp-react-native-utils": "14.0.0-rc.48",
|
|
38
38
|
"atob": "^2.1.2",
|
|
39
39
|
"axios": "^0.28.0",
|
|
40
40
|
"btoa": "^1.2.1",
|