react-native-community / template

The React Native Community Template - getting started building RN apps for Android & iOS
MIT License
70 stars 16 forks source link

Add @types/jest and simplify test example #64

Closed huntie closed 1 month ago

huntie commented 1 month ago

Summary

This is now simpler, and more closely aligned with Expo's template. Also switch it() to test().

Changelog: [General][Added] - Add @types/jest dev dependency, simplify test example

Test Plan

Apply changes to a freshly created 0.76.0-rc.2 project.

image

@types/jest automatically discovered by TypeScript, allowing us to remove the old type import ✅ Tests pass

cortinico commented 1 month ago

@huntie can we have this in 0.77 instead?

huntie commented 1 month ago

Sure — this is main though. Let's create a 0.76-stable branch for this repo?

cortinico commented 1 month ago

Sure — this is main though. Let's create a 0.76-stable branch for this repo?

It's already there: https://github.com/react-native-community/template/tree/0.76-stable

huntie commented 1 month ago

Cool. I'm absolutely not suggesting this needs to be picked :)

cortinico commented 1 month ago

Cool. I'm absolutely not suggesting this needs to be picked :)

Top 👍