@ornikar/jest-config-react 14.0.0 → 14.0.1-canary.6eb447b1294b6b02c1b1073abee54b7ab0855b4c.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 +9 -0
- package/package.json +1 -1
- package/test-setup-after-env.js +12 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,15 @@
|
|
|
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
|
+
## [14.0.1-canary.6eb447b1294b6b02c1b1073abee54b7ab0855b4c.0](https://github.com/ornikar/shared-configs/compare/@ornikar/jest-config-react@14.0.0...@ornikar/jest-config-react@14.0.1-canary.6eb447b1294b6b02c1b1073abee54b7ab0855b4c.0) (2025-05-05)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* allow react 19 deprecation messages ([6eb447b](https://github.com/ornikar/shared-configs/commit/6eb447b1294b6b02c1b1073abee54b7ab0855b4c))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
6
15
|
## [14.0.0](https://github.com/ornikar/shared-configs/compare/@ornikar/jest-config-react@13.0.2...@ornikar/jest-config-react@14.0.0) (2024-05-27)
|
|
7
16
|
|
|
8
17
|
|
package/package.json
CHANGED
package/test-setup-after-env.js
CHANGED
|
@@ -42,6 +42,18 @@ failOnConsole({
|
|
|
42
42
|
// Native base does not support role prop and needs accessibilityRole which is deprecated by react-native-web
|
|
43
43
|
if (message.startsWith('accessibilityRole is deprecated. Use role.')) return true;
|
|
44
44
|
|
|
45
|
+
return false;
|
|
46
|
+
},
|
|
47
|
+
// TODO [react@>=19]: Remove this when we upgrade to React 19
|
|
48
|
+
allowMessage: (message, methodName, context) => {
|
|
49
|
+
// React 18.3 deprecation warning to prepare migration on React 19
|
|
50
|
+
if (
|
|
51
|
+
message.includes('is deprecated and will be removed in the next major release') &&
|
|
52
|
+
message.includes('https://reactjs.org')
|
|
53
|
+
) {
|
|
54
|
+
return true;
|
|
55
|
+
}
|
|
56
|
+
|
|
45
57
|
return false;
|
|
46
58
|
},
|
|
47
59
|
});
|