Skip to content

Commit a73f299

Browse files
MatiPl01msynowski
andauthored
cherry-pick(Reanimated): Guard for undefined style in Jest utils (#8955)
cherry-pick of the #8878 Co-authored-by: Maciej Synowski <[email protected]>
1 parent da0c63e commit a73f299

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-native-reanimated/src/jestUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ const getCurrentStyle = (component: TestComponent): DefaultStyle => {
7979

8080
if (Array.isArray(jestInlineStyles)) {
8181
for (const obj of jestInlineStyles) {
82-
if ('jestAnimatedValues' in obj) {
82+
if (!obj || 'jestAnimatedValues' in obj) {
8383
continue;
8484
}
8585

0 commit comments

Comments
 (0)