Skip to content

0.86.0-rc.0/1 missing @react-native/jest-preset from devDependencies #219

@leotm

Description

@leotm

Description

https://react-native-community.github.io/upgrade-helper/?from=0.85.3&to=0.86.0-rc.0

Image Image

a separate PR including the missing package is required again
this time pointing against 0.86-stable instead of 0.85-stable

Steps to reproduce

1a. npx @react-native-community/cli@latest init MyApp --version 0.86.0-rc.0
1b. npx @react-native-community/cli@latest init MyApp --version 0.86.0-rc.1
2. cd yo
3. yarn test

React Native Community Template Version

0.86.0-rc.0, 0.86.0-rc.1

Affected Platforms

Build - Windows, Build - MacOS, Build - Linux

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.33 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.86.0-rc.0
    wanted: 0.86.0-rc.0
  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 0.86.0-rc.0

Screenshots and Videos

see above

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions