Skip to content

Add explicit use of jest types in tsconfig.json#177

Merged
cortinico merged 1 commit into
react-native-community:mainfrom
kraenhansen:kh/explicit-jest-types
Oct 17, 2025
Merged

Add explicit use of jest types in tsconfig.json#177
cortinico merged 1 commit into
react-native-community:mainfrom
kraenhansen:kh/explicit-jest-types

Conversation

@kraenhansen

Copy link
Copy Markdown

Summary:

See react/react-native#53563 for more context.

TLDR; Since jest and @types/jest are dependencies of the app and not react-native, it makes sense to move this into the app template.
This also allow libraries (not necessarily using jest) to use @react-native/typescript-config without having to install jest or re-declare types.

Changelog:

[GENERAL] [ADDED] - Add explicit use of jest types in tsconfig.json

Test Plan:

  1. Initialize the template npx @react-native-community/cli@latest init TestApp
  2. Patch the tsconfig.json
  3. Note how this doesn't affect the ability to use describe in source files.

@cortinico

Copy link
Copy Markdown
Member

@robhogan could you review this one?

@kraenhansen

Copy link
Copy Markdown
Author

@cortinico

Copy link
Copy Markdown
Member

@kraenhansen can you rebase?

@kraenhansen kraenhansen force-pushed the kh/explicit-jest-types branch from 864bdf0 to eb36549 Compare October 17, 2025 20:22
@kraenhansen

Copy link
Copy Markdown
Author

@cortinico done 👍 (could we enable the "setting to always suggest updating branches" on this repo, for the future?)

@cortinico cortinico merged commit e319a2f into react-native-community:main Oct 17, 2025
1 check passed
@cortinico

Copy link
Copy Markdown
Member

@cortinico done 👍 (could we enable the "setting to always suggest updating branches" on this repo, for the future?)

Done 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants