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 missing @jest/globals dev dev to package.json #76

Open mgcrea opened 2 weeks ago

mgcrea commented 2 weeks ago

Summary:

Add missing @jest/globals dev dev to package.json

Changelog:

Test Plan:

cortinico commented 2 weeks ago

Add missing @jest/globals dev dev to package.json

Why is this needed? Can you clarify?

mgcrea commented 2 weeks ago

Just created a new app and did have the error with the missing import from this line in my App.test.tsx:

import { it } from "@jest/globals";

But looking at the master it looks like it has been removed at some point.

I think it should be added back as it is required for TypeScript compatibility (see https://jestjs.io/docs/api)