Skip to content

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

Closed

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
1c. npx @react-native-community/cli@latest init MyApp --version 0.86.0-rc.2
1d. npx @react-native-community/cli@latest init MyApp --version 0.86.0-rc.3
1e. npx @react-native-community/cli@latest init MyApp --version latest
2. cd yo
3. yarn test

React Native Community Template Version

0.86.0-rc.0, 0.86.0-rc.1, 0.86.0-rc.2, 0.86.0-rc.3, latest

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

https://github.com/react-native-community/template/tree/0.86-stable fixed
npx @react-native-community/cli@latest init MyApp --version 0.86.0-rc.0
npx @react-native-community/cli@latest init MyApp --version 0.86.0-rc.1
npx @react-native-community/cli@latest init MyApp --version 0.86.0-rc.2
npx @react-native-community/cli@latest init MyApp --version 0.86.0-rc.3
npx @react-native-community/cli@latest init MyApp --version latest

Screenshots and Videos

see above

Activity

  1. changed the title [-]0.86.0-rc.0/1 missing @react-native/jest-preset from devDependencies[/-] [+]0.86.0-rc.0/1/2 missing @react-native/jest-preset from devDependencies[/+] on May 27, 2026
  2. changed the title [-]0.86.0-rc.0/1/2 missing @react-native/jest-preset from devDependencies[/-] [+]0.86.0-rc.0/1/2/3 missing @react-native/jest-preset from devDependencies[/+] on Jun 3, 2026
  3. leotm commented on Jun 9, 2026

    @leotm
    ContributorAuthor

    fyi

    the broken Jest setup will propagate propagated into 0.86 (latest) if

    isn't merged like prev release

    before rn bot bumps 0.86-stable (from 0.86.0-rc.3-29e4d19) to 0.86.0

    prevents this recurring in future releases (0.87-stable/rc and 0.88.0-nightly)

    prevents future broken Jest changes

    cc @cortinico @huntie @robhogan

  4. changed the title [-]0.86.0-rc.0/1/2/3 missing @react-native/jest-preset from devDependencies[/-] [+]0.86.0 rc.0-3 and latest missing @react-native/jest-preset from devDependencies[/+] on Jun 9, 2026
  5. cortinico commented on Jun 9, 2026

    @cortinico
    Member

    This shoudl all be resolved now 👍

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