Closed Adnan-Bacic closed 10 months ago
Hi @Adnan-Bacic thank you for reporting. Would be accepted by you to skip SDK init while running tests? Problem here is caused by principle, that Unit tests are NOT running in platform environment but web env. SDK is not supporting web but only Android and iOS. For example Exponea.configure is directly accessing 'configure' method in NativeModules and these are available in iOS or Android environment. Or you may create MOCK but I prefer to skip SDK init if is not required for your testing purposes. See how
i have a standard exponea configure setup:
when i run my test script, ALL tests fail due to calling the exponea function. these are just some snapshot tests i have added before integrating exponea.
i get this error message in all my snapshot test files:
it seems to be referring to these lines: