Skip to content

Commit 728e20f

Browse files
committed
[fix] jest preset
Fix #1654
1 parent 824cca1 commit 728e20f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/react-native-web/jest/setup.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ global.__DEV__ = true;
77
const mockEmptyObject = {};
88

99
// Make sure snapshots contain the original style objects
10-
jest.mock('../dist/cjs/modules/StyleSheet/ReactNativePropRegistry', () => ({
10+
jest.mock('../dist/cjs/exports/StyleSheet/ReactNativePropRegistry', () => ({
1111
register: id => id,
1212
getByID: () => mockEmptyObject
1313
}));
1414

15-
jest.mock('../dist/modules/StyleSheet/ReactNativePropRegistry', () => ({
15+
jest.mock('../dist/exports/StyleSheet/ReactNativePropRegistry', () => ({
1616
register: id => id,
1717
getByID: () => mockEmptyObject
1818
}));

0 commit comments

Comments
 (0)