[fix] jest preset

Fix #1654
This commit is contained in:
Nicolas Gallagher
2020-06-29 09:59:12 -07:00
parent 824cca1972
commit 728e20ff1f
+2 -2
View File
@@ -7,12 +7,12 @@ global.__DEV__ = true;
const mockEmptyObject = {};
// 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,
getByID: () => mockEmptyObject
}));
jest.mock('../dist/modules/StyleSheet/ReactNativePropRegistry', () => ({
jest.mock('../dist/exports/StyleSheet/ReactNativePropRegistry', () => ({
register: id => id,
getByID: () => mockEmptyObject
}));