mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-05-29 17:12:37 +00:00
+2
-2
@@ -7,12 +7,12 @@ global.__DEV__ = true;
|
|||||||
const mockEmptyObject = {};
|
const mockEmptyObject = {};
|
||||||
|
|
||||||
// Make sure snapshots contain the original style objects
|
// Make sure snapshots contain the original style objects
|
||||||
jest.mock('../dist/cjs/modules/StyleSheet/ReactNativePropRegistry', () => ({
|
jest.mock('../dist/cjs/exports/StyleSheet/ReactNativePropRegistry', () => ({
|
||||||
register: id => id,
|
register: id => id,
|
||||||
getByID: () => mockEmptyObject
|
getByID: () => mockEmptyObject
|
||||||
}));
|
}));
|
||||||
|
|
||||||
jest.mock('../dist/modules/StyleSheet/ReactNativePropRegistry', () => ({
|
jest.mock('../dist/exports/StyleSheet/ReactNativePropRegistry', () => ({
|
||||||
register: id => id,
|
register: id => id,
|
||||||
getByID: () => mockEmptyObject
|
getByID: () => mockEmptyObject
|
||||||
}));
|
}));
|
||||||
|
|||||||
Reference in New Issue
Block a user