[X] I checked the documentation and FAQ without finding a solution
[X] I checked to make sure that this issue has not already been filed
[X] I'm sure that question is related to the library itself and not Bluetooth Low Energy or Classic in general. If that so, please post your question on StackOverflow.
[X] I'm running the latest version
Question
Invariant Violation: new NativeEventEmitter() requires a non-null argument.
I'm trying to test if the behavior is as expected. Some libraries have docs for mock integration but as far as i discovered react-native-ble-plx doesn't.
Prerequisites
Question
Invariant Violation:
new NativeEventEmitter()
requires a non-null argument.I'm trying to test if the behavior is as expected. Some libraries have docs for mock integration but as far as i discovered react-native-ble-plx doesn't.
Here are the results after running npm run test.
● renders correctly
jest.config.js
app.test.jsx
in tests i have a mocks folder. under there i have a native-event-emmiter.js
native-event-emitter.js
this does pass the test. how can i achive the expected results?
let me know what you guys think
Question related code