Skip to content

Commit 613a91e

Browse files
committed
Update all 2024.12.23
1 parent bc4d4b7 commit 613a91e

File tree

6 files changed

+1632
-1914
lines changed

6 files changed

+1632
-1914
lines changed

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
23.3.0
1+
23.5.0

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,6 @@ But what if you don't want to use Jest as your testing framework? What if you do
5454
- **react:** >=18.2.0
5555
- **react-native:** ">=0.73.2
5656

57-
> [!NOTE]
58-
> Node.js v22.7.0 has enabled [module syntax detection](https://github.com/nodejs/node/releases/tag/v22.7.0) by default, causing React Native's flow modules to fail to load. The simplest solution for now is to disable the experimental feature using the `--no-experimental-detect-module` flag. You can add it to your tests script with the following environmet variable: `NODE_OPTIONS="--no-experimental-detect-module"`.
59-
6057
## Install
6158

6259
With NPM:

package.json

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -66,47 +66,47 @@
6666
"@babel/core": "^7.26.0",
6767
"@babel/register": "^7.25.9",
6868
"babel-plugin-extension-resolver": "^1.0.12",
69-
"debug": "^4.3.7",
69+
"debug": "^4.4.0",
7070
"dot-prop-immutable": "^2.1.1",
7171
"rewiremock": "^3.14.5",
72-
"supports-color": "^9.4.0",
73-
"ts-pattern": "^5.5.0"
72+
"supports-color": "^10.0.0",
73+
"ts-pattern": "^5.6.0"
7474
},
7575
"devDependencies": {
7676
"@assertive-ts/core": "^2.1.0",
77-
"@eslint/js": "^9.16.0",
78-
"@react-native/babel-preset": "^0.76.3",
79-
"@stylistic/eslint-plugin": "^2.11.0",
77+
"@eslint/js": "^9.17.0",
78+
"@react-native/babel-preset": "^0.76.5",
79+
"@stylistic/eslint-plugin": "^2.12.1",
8080
"@testing-library/react-native": "^12.9.0",
8181
"@types/babel__core": "^7.20.5",
8282
"@types/babel__register": "^7.17.3",
8383
"@types/debug": "^4.1.12",
8484
"@types/eslint__js": "^8.42.3",
85-
"@types/node": "^22.10.1",
86-
"@types/react": "^18.3.12",
87-
"@types/react-test-renderer": "^18.3.0",
85+
"@types/node": "^22.10.2",
86+
"@types/react": "^19.0.2",
87+
"@types/react-test-renderer": "^19.0.0",
8888
"@types/sinon": "^17.0.3",
89-
"eslint": "^9.16.0",
90-
"eslint-import-resolver-typescript": "^3.6.3",
89+
"eslint": "^9.17.0",
90+
"eslint-import-resolver-typescript": "^3.7.0",
9191
"eslint-plugin-import": "^2.31.0",
92-
"eslint-plugin-jsdoc": "^50.6.0",
93-
"eslint-plugin-perfectionist": "^4.1.2",
92+
"eslint-plugin-jsdoc": "^50.6.1",
93+
"eslint-plugin-perfectionist": "^4.4.0",
9494
"eslint-plugin-react": "^7.37.2",
95-
"eslint-plugin-sonarjs": "^2.0.4",
96-
"globals": "^15.12.0",
97-
"react": "18.3.1",
98-
"react-native": "^0.76.3",
99-
"react-native-svg": "^15.9.0",
100-
"react-test-renderer": "^18.3.1",
95+
"eslint-plugin-sonarjs": "^3.0.1",
96+
"globals": "^15.14.0",
97+
"react": "19.0.0",
98+
"react-native": "^0.76.5",
99+
"react-native-svg": "^15.10.1",
100+
"react-test-renderer": "^19.0.0",
101101
"semantic-release": "^24.2.0",
102102
"semantic-release-yarn": "^3.0.2",
103103
"sinon": "^19.0.2",
104104
"tslib": "^2.8.1",
105105
"typescript": "^5.7.2",
106-
"typescript-eslint": "^8.16.0",
107-
"vite": "^6.0.1",
108-
"vite-plugin-dts": "^4.3.0",
109-
"vitest": "^2.1.6"
106+
"typescript-eslint": "^8.18.2",
107+
"vite": "^6.0.5",
108+
"vite-plugin-dts": "^4.4.0",
109+
"vitest": "^2.1.8"
110110
},
111111
"peerDependencies": {
112112
"@react-native/babel-preset": ">=0.73.18",

src/helpers/nativeMethodsMock.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
import { noop } from "./commons";
22

3-
import type { ElementRef } from "react";
3+
import type { ComponentRef } from "react";
44
import type { HostComponent, Image, NativeMethods, ScrollView, TextInput, View } from "react-native";
55

66
export type ImageMethods = Partial<typeof Image>;
77

88
export type ScrollViewMethods = NativeMethods | ScrollView & {
9-
getInnerViewRef: () => ElementRef<typeof View> | null;
10-
getNativeScrollRef: () => ElementRef<HostComponent<unknown>> | null;
9+
getInnerViewRef: () => ComponentRef<typeof View> | null;
10+
getNativeScrollRef: () => ComponentRef<HostComponent<unknown>> | null;
1111
};
1212

1313
export type TextInputMethods = NativeMethods | TextInput & {
14-
getNativeRef: () => ElementRef<HostComponent<unknown>> | undefined;
14+
getNativeRef: () => ComponentRef<HostComponent<unknown>> | undefined;
1515
};
1616

1717
export const nativeMethodsMock: NativeMethods = {

src/lib/mockNative.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable sonarjs/prefer-object-spread */
21
import { createRequire } from "module";
32

43
import { match } from "ts-pattern";

0 commit comments

Comments
 (0)