@ornikar/jest-config-react 9.6.1 → 9.6.4

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/.eslintrc.json CHANGED
@@ -1,4 +1,8 @@
1
1
  {
2
2
  "root": true,
3
- "extends": ["@ornikar/eslint-config/node"]
3
+ "extends": ["@ornikar/eslint-config/node"],
4
+ "rules": {
5
+ "security/detect-non-literal-fs-filename": "off",
6
+ "security/detect-non-literal-require": "off"
7
+ }
4
8
  }
package/CHANGELOG.md CHANGED
@@ -3,6 +3,33 @@
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.6.4](https://github.com/ornikar/shared-configs/compare/@ornikar/jest-config-react@9.6.3...@ornikar/jest-config-react@9.6.4) (2022-07-27)
7
+
8
+ **Note:** Version bump only for package @ornikar/jest-config-react
9
+
10
+
11
+
12
+
13
+
14
+ ## [9.6.3](https://github.com/ornikar/shared-configs/compare/@ornikar/jest-config-react@9.6.2...@ornikar/jest-config-react@9.6.3) (2022-07-27)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **jest-config-react:** fix act without await [no issue] ([#749](https://github.com/ornikar/shared-configs/issues/749)) ([49e6c13](https://github.com/ornikar/shared-configs/commit/49e6c1392b6722fb5d7befea737cabd26220e8fd))
20
+
21
+
22
+
23
+
24
+
25
+ ## [9.6.2](https://github.com/ornikar/shared-configs/compare/@ornikar/jest-config-react@9.6.1...@ornikar/jest-config-react@9.6.2) (2022-06-20)
26
+
27
+ **Note:** Version bump only for package @ornikar/jest-config-react
28
+
29
+
30
+
31
+
32
+
6
33
  ## [9.6.1](https://github.com/ornikar/shared-configs/compare/@ornikar/jest-config-react@9.6.0...@ornikar/jest-config-react@9.6.1) (2022-04-19)
7
34
 
8
35
  **Note:** Version bump only for package @ornikar/jest-config-react
@@ -2,7 +2,7 @@
2
2
 
3
3
  'use strict';
4
4
 
5
- const { act, render, waitFor } = require('@testing-library/react');
5
+ const { render, waitFor } = require('@testing-library/react');
6
6
 
7
7
  const decorateStory = (storyFn, decorators) =>
8
8
  decorators.reduce(
@@ -72,15 +72,13 @@ exports.storiesOf = (groupName) => {
72
72
  ? undefined
73
73
  : ({ children }) => decorateStory(() => children, [...localDecorators, ...globalDecorators])(context);
74
74
 
75
- await act(async () => {
76
- const rtlApi = render(story(context), { wrapper: wrappingComponent });
77
- const { unmount, asFragment } = rtlApi;
78
- if (waitForExpectation) {
79
- await waitFor(() => waitForExpectation(rtlApi, expect, { parameters }));
80
- }
81
- expect(asFragment()).toMatchSnapshot();
82
- unmount();
83
- });
75
+ const rtlApi = render(story(context), { wrapper: wrappingComponent });
76
+ const { unmount, asFragment } = rtlApi;
77
+ if (waitForExpectation) {
78
+ await waitFor(() => waitForExpectation(rtlApi, expect, { parameters }));
79
+ }
80
+ expect(asFragment()).toMatchSnapshot();
81
+ unmount();
84
82
  });
85
83
  });
86
84
 
package/package.json CHANGED
@@ -1,8 +1,12 @@
1
1
  {
2
2
  "name": "@ornikar/jest-config-react",
3
- "version": "9.6.1",
3
+ "version": "9.6.4",
4
4
  "description": "✅⚛️ jest config for react",
5
- "repository": "ornikar/shared-configs",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/ornikar/shared-configs.git",
8
+ "directory": "@ornikar/jest-config-react"
9
+ },
6
10
  "main": "jest-preset.js",
7
11
  "license": "ISC",
8
12
  "engines": {
@@ -19,7 +23,7 @@
19
23
  "react-dom": "^16.6.3 || ^17.0.0"
20
24
  },
21
25
  "dependencies": {
22
- "@ornikar/jest-config": "^7.1.4",
26
+ "@ornikar/jest-config": "^8.0.0",
23
27
  "identity-obj-proxy": "^3.0.0"
24
28
  },
25
29
  "devDependencies": {
@@ -29,5 +33,5 @@
29
33
  "react": "17.0.2",
30
34
  "react-dom": "17.0.2"
31
35
  },
32
- "gitHead": "48ba934054bbce6f4cb92b25538d5ebe3673469a"
36
+ "gitHead": "2e47a39f9cb9e49da8566ee726943ba839ec307a"
33
37
  }