Skip to content

0.85/0.86/0.87-nightly missing @react-native/jest-preset from devDependencies #221

Closed

Description

@leotm

Description

looks like every nightly and new rc release since

ships with

  • missing @react-native/jest-preset
  • failing test script

we should merge

ideally before 0.87-stable to prevent future

then likely extend scripts\__tests__\package_json-test.js
to ensure all current @react-native/... scoped packages are present

i considered extending github.com/facebook/react-native/blob/main/.github/workflows/test-all.yml
since neither test_e2e_android_templateapp nor test_e2e_ios_templateapp cover yarn test
but a future breakage here causing all facebook/react-native PRs to break is a risk not worth it

done in

cc @kitten @huntie @cortinico wdyt

Steps to reproduce

1a. npx @react-native-community/cli@latest init yo --version 0.85.0-nightly-20260217-db45c280e
1b. npx @react-native-community/cli@latest init yo --version 0.87.0-nightly-20260519-58cd1bf58
1c. npx @react-native-community/cli@latest init yo --version nightly
3. cd yo
4. yarn test

React Native Community Template Version

0.85.0-nightly-20260217-db45c280e, nightly

Affected Platforms

Build - Linux, Build - Windows, Build - MacOS

Output of npx @react-native-community/cli@latest info

info Fetching system and libraries information...
System:
  OS: Windows 11 10.0.26200
  CPU: (20) x64 12th Gen Intel(R) Core(TM) i7-12700K
  Memory: 4.50 GB / 31.79 GB
Binaries:
  Node:
    version: 24.14.0
    path: C:\Program Files\nodejs\node.EXE
  Yarn:
    version: 1.22.22
    path: C:\Program Files\nodejs\yarn.CMD
  npm:
    version: 11.9.0
    path: C:\Program Files\nodejs\npm.CMD
  Watchman: Not Found
SDKs:
  Android SDK:
    API Levels:
      - "34"
      - "36"
    Build Tools:
      - 34.0.0
      - 35.0.0
      - 36.0.0
    Android NDK: Not Found
  Windows SDK: Not Found
IDEs:
  Android Studio: Not Found
  Visual Studio: Not Found
Languages:
  Java:
    version: javac 26
    path: C:\Program Files\Common Files\Oracle\Java\javapath\javac.EXE
  Ruby: Not Found
npmPackages:
  "@react-native-community/cli":
    installed: 20.1.0
    wanted: 20.1.0
  react:
    installed: 19.2.3
    wanted: 19.2.3
  react-native:
    installed: 0.87.0-nightly-20260519-58cd1bf58
    wanted: nightly
  react-native-windows: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: Not found
  newArchEnabled: Not found

Stacktrace or Logs

yarn run v1.22.22
$ jest
● Validation Error:

  Preset @react-native/jest-preset not found.

  Configuration Documentation:
  https://jestjs.io/docs/configuration

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Reproducer

npx @react-native-community/cli@latest init MyApp --version nightly

Screenshots and Videos

No response

Activity

  1. cortinico commented on May 24, 2026

    @cortinico
    Member

    @huntie @robhogan what's the reason @react-native/jest-preset was removed from devDependencies in the first place?

  2. huntie commented on Jun 2, 2026

    @huntie
    Collaborator

    @cortinico Not removed, just forgotten to be added I think: #208

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions