@ornikar/jest-config-react 12.0.2-canary.2843a1d7a7dbe72455f78660208e6dbeaf3abec2.0 → 12.0.3-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 +15 -3
- package/__mocks__/@storybook/react.js +6 -4
- package/package.json +3 -3
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
|
-
## [12.0.
|
|
6
|
+
## [12.0.3-canary.320f5778927956dbdd27ba61cfd4043822380832.0](https://github.com/ornikar/shared-configs/compare/@ornikar/jest-config-react@12.0.2...@ornikar/jest-config-react@12.0.3-canary.320f5778927956dbdd27ba61cfd4043822380832.0) (2023-11-21)
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
### Features
|
|
10
10
|
|
|
11
|
-
* **jest-config-react:**
|
|
12
|
-
|
|
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
|
+
## [12.0.2](https://github.com/ornikar/shared-configs/compare/@ornikar/jest-config-react@12.0.1...@ornikar/jest-config-react@12.0.2) (2023-11-14)
|
|
21
|
+
|
|
22
|
+
**Note:** Version bump only for package @ornikar/jest-config-react
|
|
23
|
+
|
|
24
|
+
|
|
13
25
|
|
|
14
26
|
|
|
15
27
|
|
|
@@ -83,10 +83,7 @@ exports.storiesOf = (groupName) => {
|
|
|
83
83
|
|
|
84
84
|
const rtlApi = render(story(context), { wrapper: wrappingComponent });
|
|
85
85
|
if (waitForExpectation) {
|
|
86
|
-
await waitFor(
|
|
87
|
-
// eslint-disable-next-line no-return-await
|
|
88
|
-
return await waitForExpectation(rtlApi, expect, { parameters });
|
|
89
|
-
});
|
|
86
|
+
await waitFor(() => waitForExpectation(rtlApi, expect, { parameters }));
|
|
90
87
|
}
|
|
91
88
|
expect(rtlApi.asFragment()).toMatchSnapshot();
|
|
92
89
|
rtlApi.unmount();
|
|
@@ -102,6 +99,11 @@ exports.storiesOf = (groupName) => {
|
|
|
102
99
|
|
|
103
100
|
addParameters(parameters) {
|
|
104
101
|
Object.assign(localParameters, parameters);
|
|
102
|
+
|
|
103
|
+
if (parameters?.jest?.beforeAll) {
|
|
104
|
+
parameters.jest.beforeAll();
|
|
105
|
+
}
|
|
106
|
+
|
|
105
107
|
return api;
|
|
106
108
|
},
|
|
107
109
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ornikar/jest-config-react",
|
|
3
|
-
"version": "12.0.
|
|
3
|
+
"version": "12.0.3-canary.320f5778927956dbdd27ba61cfd4043822380832.0",
|
|
4
4
|
"description": "✅⚛️ jest config for react",
|
|
5
5
|
"repository": {
|
|
6
6
|
"directory": "@ornikar/jest-config-react",
|
|
@@ -23,13 +23,13 @@
|
|
|
23
23
|
"react-dom": "^18.2.0"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@ornikar/jest-config": "10.1.0",
|
|
26
|
+
"@ornikar/jest-config": "10.1.1-canary.320f5778927956dbdd27ba61cfd4043822380832.0",
|
|
27
27
|
"identity-obj-proxy": "^3.0.0",
|
|
28
28
|
"jest-fail-on-console": "^3.1.1"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@testing-library/react": "14.1.0",
|
|
32
|
-
"jest": "29.
|
|
32
|
+
"jest": "29.7.0",
|
|
33
33
|
"react": "18.2.0",
|
|
34
34
|
"react-dom": "18.2.0"
|
|
35
35
|
},
|