googlemaps / react-native-navigation-sdk

Apache License 2.0
25 stars 5 forks source link

Fleshing out the Jest mocking config #253

Open TrentonBlackburn opened 1 month ago

TrentonBlackburn commented 1 month ago

Hey there, we are consuming this SDK for our application, and are now required to flesh out unit testing for it.

I noticed that jest-config.ts seems to exist solely for complying with the package template, but I was curious if there were any plans to flesh it out soon so that us consumers can effectively test our consumption of the package.

Thanks!

jokerttu commented 1 month ago

@TrentonBlackburn Thanks for bringing this up!

You're right—the current jest-config.ts is fairly minimal, and we haven’t fully fleshed it out yet, nor do we have real tests against the example app. We're actively working on building out the testing infrastructure for this package, which will include more detailed Jest configurations and example tests. In addition, we're working on native unit tests for both Android and iOS implementations. Since the project involves native modules, we also plan to focus more on integration tests for the React Native implementation.

You can expect improvements on the testing coverage in the near future.

In the meantime, if you or others in the community have suggestions or would like to contribute, PRs improving the current state are always welcome!