I am getting the following error when running jest tests (the code works in general but I want the tests to work too)
TypeError: _reactNativeBackgroundTimer2.default.setInterval is not a function
My codes is as follows:
const intervalId = BackgroundTimer.setInterval(() => {
// this will be executed every 200 ms
// even when app is the the background
console.log('tic');
PushNotification.localNotification({
title: "Daily TReminder",
message: "this works!"
});
}, 14400);
I am getting the following error when running jest tests (the code works in general but I want the tests to work too)
TypeError: _reactNativeBackgroundTimer2.default.setInterval is not a functionMy codes is as follows: