byCedric / expo-monorepo-example

Fast pnpm monorepo for cross-platform apps built with Expo / React Native and React.
https://docs.expo.dev/guides/monorepos/
MIT License
724 stars 76 forks source link

Fully unit testing and e2e initial configuration for apps and packages #53

Closed Jonatthu closed 2 years ago

Jonatthu commented 2 years ago

Description of the feature

Add initial configuration for jest for unit testing. Add initial configuration with Detox for e2e testing. Add initial configuration for mocks patterns

Motivation

Monorepo specific configuration of these to frameworks its hard and often overlooked.

Additional context

byCedric commented 2 years ago

I've added basic Jest unit tests. Although detox/e2e tests are an interesting topic, I think this is outside of the scope for this example repo. We also have this doc page that should guide you through it.

Let me know if you are running into trouble!