I create a new react-native app with the latest version, the default testing works well. Then I use 'react-native-fs' lib to write a file in my app and it works fine. But I try to run the testing command, it failed.
> TestJest@0.0.1 test D:\test\TestJest
> jest
FAIL __tests__\index.android.js
● Test suite failed to run
TypeError: Cannot read property 'RNFSFileTypeRegular' of undefined
at Object.<anonymous> (node_modules\react-native-fs\FS.common.js:17:36)
at Object.<anonymous> (index.android.js:14:20)
Test Suites: 1 failed, 1 total
Tests: 0 total
Snapshots: 0 total
Time: 0.8s
Ran all test suites.
npm ERR! Test failed. See above for more details.
I have followed the manual document of Jest but I haven't resolved error yet. Here is my example repo. Could you have a look at my example repo and let me know what I wrong?
Thank you.