Open anhtuank7c opened 2 years ago
I want to confirm: this is a major issue for us. Not sure what the cause is.
no jest unit test errors
import MMKVStorage from 'react-native-mmkv-storage';
const SecureStorage = new MMKVStorage.Loader()
.withEncryption()
.withInstanceId('someThing')
.initialize();
hundreds of unit test errors
import { MMKVLoader } from 'react-native-mmkv-storage';
const SecureStorage = new MMKVLoader()
.withEncryption()
.withInstanceId('someThing')
.initialize();
Describe the bug Jest test failed when initializing an instance. Application working fine except jest scenario.
To Reproduce Steps to reproduce the behavior:
Expected behavior Jest test working good.
Screenshots
Platform Information:
I added an extra configuration to jest config.
https://rnmmkv.vercel.app/#/mockjest