Skip to content

Commit def70c8

Browse files
committed
Merge branch 'main' into @mbert/clickable-mock
2 parents e1e32ee + 211b715 commit def70c8

2 files changed

Lines changed: 1 addition & 18 deletions

File tree

packages/react-native-gesture-handler/jestSetup.js

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,6 @@ jest.mock('./src/v3/detectors/HostGestureDetector', () =>
1212
require('./src/mocks/hostDetector')
1313
);
1414

15-
jest.mock('./lib/commonjs/RNGestureHandlerModule', () =>
16-
require('./lib/commonjs/mocks/module')
17-
);
18-
jest.mock('./lib/commonjs/components/GestureButtons', () =>
19-
require('./lib/commonjs/mocks/GestureButtons')
20-
);
21-
jest.mock('./lib/commonjs/components/Pressable', () =>
22-
require('./lib/commonjs/mocks/Pressable')
23-
);
24-
jest.mock('./lib/commonjs/components/GestureComponents', () =>
25-
require('./lib/commonjs/mocks/gestureComponents')
26-
);
27-
jest.mock('./lib/commonjs/v3/detectors/HostGestureDetector', () =>
28-
require('./lib/commonjs/mocks/hostDetector')
29-
);
30-
3115
jest.mock('./lib/module/RNGestureHandlerModule', () =>
3216
require('./lib/module/mocks/module')
3317
);

packages/react-native-gesture-handler/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"postpack": "rm ./README.md"
2121
},
2222
"react-native": "src/index.ts",
23-
"main": "lib/commonjs/index.js",
23+
"main": "lib/module/index.js",
2424
"module": "lib/module/index.js",
2525
"types": "lib/typescript/index.d.ts",
2626
"files": [
@@ -110,7 +110,6 @@
110110
"source": "src",
111111
"output": "lib",
112112
"targets": [
113-
"commonjs",
114113
"module",
115114
[
116115
"typescript",

0 commit comments

Comments
 (0)