@ornikar/jest-config-react-native 9.0.5-canary.2843a1d7a7dbe72455f78660208e6dbeaf3abec2.0 → 9.0.6-canary.320f5778927956dbdd27ba61cfd4043822380832.0

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.
package/CHANGELOG.md CHANGED
@@ -3,13 +3,25 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- ## [9.0.5-canary.2843a1d7a7dbe72455f78660208e6dbeaf3abec2.0](https://github.com/ornikar/shared-configs/compare/@ornikar/jest-config-react-native@9.0.4...@ornikar/jest-config-react-native@9.0.5-canary.2843a1d7a7dbe72455f78660208e6dbeaf3abec2.0) (2023-11-10)
6
+ ## [9.0.6-canary.320f5778927956dbdd27ba61cfd4043822380832.0](https://github.com/ornikar/shared-configs/compare/@ornikar/jest-config-react-native@9.0.5...@ornikar/jest-config-react-native@9.0.6-canary.320f5778927956dbdd27ba61cfd4043822380832.0) (2023-11-21)
7
7
 
8
8
 
9
9
  ### Features
10
10
 
11
- * **jest-config-react:** await storybook waitFor DR-3508 ([af0993a](https://github.com/ornikar/shared-configs/commit/af0993aaf7d75284774e4ff84c804b0f35f33fe3))
12
- * temp ([2843a1d](https://github.com/ornikar/shared-configs/commit/2843a1d7a7dbe72455f78660208e6dbeaf3abec2))
11
+ * **jest-config-react-native:** add beforeAll parameter [no issue] ([6540879](https://github.com/ornikar/shared-configs/commit/654087956758aaf24519780fbd63dcb82fab1bb4))
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * beforeAll in stories parameter ([320f577](https://github.com/ornikar/shared-configs/commit/320f5778927956dbdd27ba61cfd4043822380832))
17
+
18
+
19
+
20
+ ## [9.0.5](https://github.com/ornikar/shared-configs/compare/@ornikar/jest-config-react-native@9.0.4...@ornikar/jest-config-react-native@9.0.5) (2023-11-14)
21
+
22
+ **Note:** Version bump only for package @ornikar/jest-config-react-native
23
+
24
+
13
25
 
14
26
 
15
27
 
@@ -83,12 +83,7 @@ exports.storiesOf = (groupName) => {
83
83
  : ({ children }) => decorateStory(() => children, [...localDecorators, ...globalDecorators])(context);
84
84
 
85
85
  const rtlApi = render(story(context), { wrapper: WrappingComponent });
86
- if (waitForExpectation) {
87
- await waitFor(async () => {
88
- // eslint-disable-next-line no-return-await
89
- return await waitForExpectation(rtlApi, expect, { parameters });
90
- });
91
- }
86
+ if (waitForExpectation) await waitFor(() => waitForExpectation(rtlApi, expect, { parameters }));
92
87
  expect(rtlApi.toJSON()).toMatchSnapshot();
93
88
  rtlApi.unmount();
94
89
  });
@@ -99,6 +94,11 @@ exports.storiesOf = (groupName) => {
99
94
 
100
95
  addParameters(parameters) {
101
96
  Object.assign(localParameters, parameters);
97
+
98
+ if (parameters?.jest?.beforeAll) {
99
+ parameters.jest.beforeAll();
100
+ }
101
+
102
102
  return api;
103
103
  },
104
104
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ornikar/jest-config-react-native",
3
- "version": "9.0.5-canary.2843a1d7a7dbe72455f78660208e6dbeaf3abec2.0",
3
+ "version": "9.0.6-canary.320f5778927956dbdd27ba61cfd4043822380832.0",
4
4
  "description": "✅⚛️📱 jest config for react-native",
5
5
  "repository": {
6
6
  "directory": "@ornikar/jest-config-react-native",
@@ -43,12 +43,12 @@
43
43
  }
44
44
  },
45
45
  "dependencies": {
46
- "@ornikar/jest-config-react": "12.0.2-canary.2843a1d7a7dbe72455f78660208e6dbeaf3abec2.0",
46
+ "@ornikar/jest-config-react": "12.0.3-canary.320f5778927956dbdd27ba61cfd4043822380832.0",
47
47
  "@sucrase/jest-plugin": "^3.0.0",
48
48
  "sucrase": "^3.34.0"
49
49
  },
50
50
  "devDependencies": {
51
- "@testing-library/react-native": "12.3.2",
51
+ "@testing-library/react-native": "12.3.3",
52
52
  "jest-expo": "49.0.0",
53
53
  "react": "18.2.0",
54
54
  "react-test-renderer": "18.2.0"