Closed Andarius closed 3 years ago
The issue is valid!
Hey @Andarius
You should change the path to setUpJestTest()
function in your jest-setup.js file to:
require('react-native-reanimated/lib/reanimated2/jestUtils').setUpTests();
We changed the location of this file during the codebase migration to TS, and we forgot to update documentation.
Thanks @piaskowyk for the quick answer! It works again now.
Am i the only one getting this message when I run the jest test suites after adding reanimated 2 to my jest setup file :
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
?
Description
When running tests with the 2.1.0 version, the following error is raised.
Downgrading to 2.0.0 does not raise an error
Expected behavior
No error raised
Actual behavior & steps to reproduce
Run jest with 2.1.0 version
Snack or minimal code example
Package versions
Affected platforms