diff --git a/template/__tests__/App.test.tsx b/template/__tests__/App.test.tsx index 178476699b6055..3413ac1c403683 100644 --- a/template/__tests__/App.test.tsx +++ b/template/__tests__/App.test.tsx @@ -6,6 +6,9 @@ import 'react-native'; import React from 'react'; import App from '../App'; +// Note: import explicitly to use the types shiped with jest. +import {it} from '@jest/globals'; + // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; diff --git a/template/package.json b/template/package.json index 3ac504d528f1e8..cf3b10d19e9e0e 100644 --- a/template/package.json +++ b/template/package.json @@ -19,7 +19,6 @@ "@babel/runtime": "^7.12.5", "@react-native/eslint-config": "^0.72.1", "@tsconfig/react-native": "^2.0.2", - "@types/jest": "^29.2.1", "@types/react": "^18.0.24", "@types/react-test-renderer": "^18.0.0", "babel-jest": "^29.2.1",