@ornikar/jest-config-react 14.0.1-canary.a404f50bc82b13a8727fc2747476572df4a51b23.0 → 14.1.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,12 +3,12 @@
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.a404f50bc82b13a8727fc2747476572df4a51b23.0](https://github.com/ornikar/shared-configs/compare/@ornikar/jest-config-react@14.0.0...@ornikar/jest-config-react@14.0.1-canary.a404f50bc82b13a8727fc2747476572df4a51b23.0) (2025-04-28)
6
+ ## [14.1.0](https://github.com/ornikar/shared-configs/compare/@ornikar/jest-config-react@14.0.0...@ornikar/jest-config-react@14.1.0) (2025-05-20)
7
7
 
8
8
 
9
9
  ### Features
10
10
 
11
- * expo 52 ([a404f50](https://github.com/ornikar/shared-configs/commit/a404f50bc82b13a8727fc2747476572df4a51b23))
11
+ * allow react 19 deprecation messages [no issue] ([#1118](https://github.com/ornikar/shared-configs/issues/1118)) ([e019c5c](https://github.com/ornikar/shared-configs/commit/e019c5c67c7706385d5c86b6b893d0f8f4ffb5b7))
12
12
 
13
13
 
14
14
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ornikar/jest-config-react",
3
- "version": "14.0.1-canary.a404f50bc82b13a8727fc2747476572df4a51b23.0",
3
+ "version": "14.1.0",
4
4
  "description": "✅⚛️ jest config for react",
5
5
  "repository": {
6
6
  "directory": "@ornikar/jest-config-react",
@@ -19,19 +19,19 @@
19
19
  "@testing-library/react": "^14.0.0",
20
20
  "jest": "^29.5.0",
21
21
  "jest-environment-jsdom": "^29.5.0",
22
- "react": "^18.3.1",
23
- "react-dom": "^18.3.1"
22
+ "react": "^18.2.0",
23
+ "react-dom": "^18.2.0"
24
24
  },
25
25
  "dependencies": {
26
- "@ornikar/jest-config": "11.2.0",
26
+ "@ornikar/jest-config": "11.3.0",
27
27
  "identity-obj-proxy": "^3.0.0",
28
- "jest-fail-on-console": "^3.1.1"
28
+ "jest-fail-on-console": "^3.2.0"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@testing-library/react": "14.3.1",
32
32
  "jest": "29.7.0",
33
- "react": "18.3.1",
34
- "react-dom": "18.3.1"
33
+ "react": "18.2.0",
34
+ "react-dom": "18.2.0"
35
35
  },
36
36
  "scripts": {
37
37
  "lint:eslint": "yarn ../.. eslint --report-unused-disable-directives --quiet @ornikar/jest-config-react"
@@ -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
  });