Skip to content

Dependabot bumps jest-expo / eslint-config-expo across SDK majors (#247 breaks Jest) #249

Open

Description

@the40n8

Context

Dependabot PR #247 (dev-dependencies group) fails CI at the Jest step: all 9 suites crash at setup and 0 tests run.

Root cause

The group bumps two packages whose major version is the Expo SDK number:

  • jest-expo 57.0.5 -> 58.0.14
  • eslint-config-expo 57.0.2 -> 58.0.4

The app is on SDK 57 / react-native 0.86.3.

  • jest-expo@58 targets RN 0.88. Its preset maps react-native/asset-registry to react-native/src/asset-registry.js, a path that does not exist in RN 0.86 (the registry lives in Libraries/Image/AssetRegistry.js):
    Configuration error:
    Could not locate module react-native/asset-registry mapped as:
    .../node_modules/react-native/src/asset-registry.js
    
  • eslint-config-expo@58 makes expo-doctor report a major mismatch (expected ~57.0.2).

.github/dependabot.yml already ignores expo-*, @react-native/* etc., but jest-expo and eslint-config-expo don't match those patterns, so they slip through.

Evidence (local, on top of main db4e29d)

Check #247 bumps as-is jest-expo / eslint-config-expo kept on 57
jest 9/9 suites fail at setup 9/9 pass (110 tests)
expo-doctor major mismatch on eslint-config-expo passes (with #248 realignment)

The other bumps in the group (@babel/core 7.29.13, prettier 3.9.10) pass every check.

Proposal

Add jest-expo and eslint-config-expo to the Dependabot ignore list for semver-major, like the other SDK-driven packages. Their patches stay aligned by npx expo install --fix, and majors move with the SDK upgrade. Once merged, Dependabot should regenerate #247 with only the safe bumps.

Acceptance criteria

  • Dependabot no longer proposes SDK-major bumps of jest-expo / eslint-config-expo.
  • The regenerated dev-dependencies PR passes Jest and expo-doctor.

Activity

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