How can I pass parameters when calling a Node.js script from PHP exec()?

I’m trying to implement iOS push notifications. My PHP version stopped working and I haven’t been able to get it working again. However, I have a node.js script that works perfectly, using Apple’s new …

How to mock Push notification native module in React native jest tests?

When using the module react-native-push-notification, I had this error: I tried to mock the module by creating __mocks__/react-native.js and putting this code within it: Now, I have this error: How I could mock fully this module the right way? Answer I mocked the module PushNotificationIOS by creating a setup file jest/setup.js: I’ve configured jest to run this setup file by adding this line into packages.json: