Files
iNaturalistReactNative/tests/helpers/mockMortalForIntegration.js
T
Ryan StellyandJohannes Klein 63da9cbcfb upgrade to nativewind@4 (#3826)
* nativewind 4 spike

* themed and cssInterop fixes

* clearify comment on inline Animated.View styles

* remaining style fixes and supplementary agent docs

* fix pill button on media screens

---------

Co-authored-by: Johannes Klein <17345891+jtklein@users.noreply.github.com>
2026-08-24 20:23:03 -05:00

13 lines
594 B
JavaScript

// Mortal gates children on navigation focus, which does not run reliably after
// CommonActions.reset in integration tests. See MOB-879.
jest.mock( "components/SharedComponents/Mortal", ( ) => {
// jest.requireActual instead of require: nativewind's babel plugin rewrites
// React.createElement from a plain require("react") to reference a hoisted
// import, which jest.mock factories aren't allowed to touch
const React = jest.requireActual( "react" );
return {
__esModule: true,
default: ( { children } ) => React.createElement( React.Fragment, null, children ),
};
} );